megam_api 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a5f4aeeaa22885097ab5b3b9c200eed02282075
4
- data.tar.gz: 0259bfffe148387c190a699b1f181182658b8912
3
+ metadata.gz: 982cc881b53f7a02abb98cf28aaf3d0dbb9ad167
4
+ data.tar.gz: 78904d97ae836b605e037677ebbc9febd9fd1a23
5
5
  SHA512:
6
- metadata.gz: d92b6c89813fe69f370c47e646e638f97c0dd1e7c54bffdd0104d257028013067bff3dea18825271726b27cb11d88e362959f23ca4dcb38c96e08eac8372d0d7
7
- data.tar.gz: 66e68c00851aecb2c95905f423e11bdd2b8cd09689e0b0595ae3c357807fa5a31026a13fd1b37abcf441f137ed0a77254f7780c084b340b39a64c5b6e35740a6
6
+ metadata.gz: 573f1d34144cd9fe9866b54eb187a991e3c2ac7252da4d98361c45a8991d6cb71bd5c7bc79aab9caf7f746e7b12b8fb2f660ce98f79315ead01e705659e2375f
7
+ data.tar.gz: cb25d480956ae16db3d93a2f740d228f9482e3a2f573361e0e9ab5a2b8b1778e1be370dbdcfe47507edb792a0abfc5dc93f14dc0e11328da6820b2dd6d6d276f
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.5.7"
3
+ VERSION = "1.5.8"
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ module Megam
7
7
  @data = []
8
8
  @created_at = nil
9
9
  @limit = nil
10
+ @id =nil
10
11
  @some_msg = {}
11
12
  super(o)
12
13
  end
@@ -23,6 +24,14 @@ module Megam
23
24
  end
24
25
  end
25
26
 
27
+ def id(arg=nil)
28
+ if arg != nil
29
+ @id = arg
30
+ else
31
+ @id
32
+ end
33
+ end
34
+
26
35
  def assembly_id(arg=nil)
27
36
  if arg != nil
28
37
  @assembly_id = arg
@@ -104,7 +113,8 @@ module Megam
104
113
  "event_type" => event_type,
105
114
  "data" => data,
106
115
  "limit" => limit,
107
- "created_at" => created_at
116
+ "created_at" => created_at,
117
+ "id" => id
108
118
  }
109
119
  result
110
120
  end
@@ -131,12 +141,13 @@ module Megam
131
141
  end
132
142
 
133
143
  def from_hash(o)
134
- @account_id = o[:account_id] if o.has_key?(:account_id)
135
- @assembly_id = o[:assembly_id] if o.has_key?(:assembly_id)
144
+ @account_id = o[:account_id] if o.has_key?(:account_id)
145
+ @assembly_id = o[:assembly_id] if o.has_key?(:assembly_id)
136
146
  @event_type = o[:event_type] if o.has_key?(:event_type)
137
- @data = o[:data] if o.has_key?(:data)
138
- @limit = o[:limit] if o.has_key?(:limit)
147
+ @data = o[:data] if o.has_key?(:data)
148
+ @limit = o[:limit] if o.has_key?(:limit)
139
149
  @created_at = o[:created_at] if o.has_key?(:created_at)
150
+ @id = o[:id] if o.has_key?(:id)
140
151
  self
141
152
  end
142
153
 
@@ -152,8 +163,8 @@ module Megam
152
163
 
153
164
  # Load a account by email_p
154
165
  def self.show(o)
155
- evt = self.new(o)
156
- evt.megam_rest.get_eventsvm(o[:limit], to_hash)
166
+ evt = from_hash(o)
167
+ evt.megam_rest.get_eventsvm(o[:limit], evt.from_hash(o).for_json)
157
168
  end
158
169
 
159
170
  def self.list(params)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: megam_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Rajesh Rajagopalan, Thomas Alrin,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-11 00:00:00.000000000 Z
12
+ date: 2016-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon
@@ -265,29 +265,4 @@ rubygems_version: 2.5.1
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Ruby Client for the Megam
268
- test_files:
269
- - test/mixins/test_assemblies.rb
270
- - test/mixins/test_assembly.rb
271
- - test/mixins/test_component.rb
272
- - test/test_accounts.rb
273
- - test/test_addons.rb
274
- - test/test_assemblies.rb
275
- - test/test_assembly.rb
276
- - test/test_balances.rb
277
- - test/test_billedhistories.rb
278
- - test/test_billingtranscations.rb
279
- - test/test_components.rb
280
- - test/test_domains.rb
281
- - test/test_eventsbilling.rb
282
- - test/test_eventscontainer.rb
283
- - test/test_eventsstorage.rb
284
- - test/test_eventsvm.rb
285
- - test/test_helper.rb
286
- - test/test_marketplaces.rb
287
- - test/test_organizations.rb
288
- - test/test_promos.rb
289
- - test/test_requests.rb
290
- - test/test_sensors.rb
291
- - test/test_snapshots.rb
292
- - test/test_sshkeys.rb
293
- - test/test_subscriptions.rb
268
+ test_files: []