megam_api 1.6.2 → 1.6.3

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: fc99bbb8eb16b9464c39b21600189133ba53d6ad
4
- data.tar.gz: e14c1cd0902a7cedcfbf18c519a44e73c11228ab
3
+ metadata.gz: 20ff8d4139a049949ac90940036647a6e4df8da9
4
+ data.tar.gz: 61f90c0de4d2a0bbca0b252e90111a84c8aaee31
5
5
  SHA512:
6
- metadata.gz: 3be3312e561564b99b0566aa685f73437ae2c863bd5fcb5c8f662a00a9bbe1e8def4abdfac395387159a48b55cfcefb8e6aa957904df3ef240f0a39aff2266b0
7
- data.tar.gz: 2b8ddefabd421771496058fcb36166f25b5102245756d17180f456fdde94a75f4597ecdfb601be18bc64be37a13a5a965fc31731ea5501a722e929ab8156a517
6
+ metadata.gz: d50c0139437b5d3beeb72da70676454a4e66f254f4023643b7abfea8eb32ea4409c9b651c9f0b9aff4e4c5d09757f3e3fa58836f7bc7d1e3c862c0b1087a3189
7
+ data.tar.gz: 7da95561e325165f43272c9d661032b40f1c1b1bd07dd352c4123dacce2de0bee3df9ab8576cf70877d6ce47a0125720aa464345523e2896b8e83df1891ea059
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.6.2"
3
+ VERSION = "1.6.3"
4
4
  end
5
5
  end
@@ -6,6 +6,7 @@ module Megam
6
6
  @event_type = nil
7
7
  @data = []
8
8
  @created_at = nil
9
+ @id = nil
9
10
  @limit = nil
10
11
  @some_msg = {}
11
12
  super(o)
@@ -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
@@ -87,6 +96,7 @@ module Megam
87
96
  index_hash["data"] = data
88
97
  index_hash["limit"] = limit
89
98
  index_hash["created_at"] = created_at
99
+ index_hash["id"] = id
90
100
  index_hash["some_msg"] = some_msg
91
101
  index_hash
92
102
  end
@@ -105,6 +115,7 @@ module Megam
105
115
  "data" => data,
106
116
  "limit" => limit,
107
117
  "created_at" => created_at
118
+ "id" => id
108
119
  }
109
120
  result
110
121
  end
@@ -113,6 +124,7 @@ module Megam
113
124
  evt = new({})
114
125
  evt.account_id(o["account_id"]) if o.has_key?("account_id")
115
126
  evt.assembly_id(o["assembly_id"]) if o.has_key?("assembly_id")
127
+ evt.id(o["id"]) if o.has_key?("id")
116
128
  evt.event_type(o["event_type"]) if o.has_key?("event_type") #this will be an array? can hash store array?
117
129
  evt.data(o["data"]) if o.has_key?("data")
118
130
  evt.limit(o["limit"]) if o.has_key?("limit")
@@ -137,6 +149,7 @@ module Megam
137
149
  @data = o[:data] if o.has_key?(:data)
138
150
  @limit = o[:limit] if o.has_key?(:limit)
139
151
  @created_at = o[:created_at] if o.has_key?(:created_at)
152
+ @id = o[:id] if o.has_key?(:id)
140
153
  self
141
154
  end
142
155
 
@@ -152,8 +165,8 @@ module Megam
152
165
 
153
166
  # Load a account by email_p
154
167
  def self.show(o)
155
- evt = self.new(o)
156
- evt.megam_rest.get_eventscontainer(o[:limit], to_hash)
168
+ evt = from_hash(o)
169
+ evt.megam_rest.get_eventscontainer(o[:limit], evt.from_hash(o).for_json)
157
170
  end
158
171
 
159
172
  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.6.2
4
+ version: 1.6.3
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-09-09 00:00:00.000000000 Z
12
+ date: 2016-09-12 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: []