megam_api 0.42 → 0.43

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: 07790916bdde8822de189fdfdf050ee59751c9e3
4
- data.tar.gz: 02e6958f0beadc0d23cc56bfdc4163870f29c023
3
+ metadata.gz: eebcad90954af1dae6376ace92b915a35f81261d
4
+ data.tar.gz: a8bb083480de64a1d065b05a65d00217ed133e94
5
5
  SHA512:
6
- metadata.gz: 3d460ebcea8cb1083105e8914f6805f69f538d57b7843cce4d332ccf770698de892324ee6817b7f5dfdf6b80bebb42dde691e2eb461eea5a0c9f85fdfc372e68
7
- data.tar.gz: 528ab5807d0d572c7844c85a97e244cf1692265de9ef4b745d3ecc6214bf45aa0d2d88d76bfad3cc7de0acf26204048e3628232624e9517b2b70c7a80d865323
6
+ metadata.gz: e20ad0b6ec7dfec6c8ff75d09542e3e248c3465f56f6cb985bf873325535d8c5e178898f1cb63746ef0f9ae64cc23cb76293a5282275c08f29e47afa2a22c5f9
7
+ data.tar.gz: a7f4fb0c29ff96796ffde4f4b70de1500de753dad418cf0a61a29475b8f3b0e374b7438b977437732646b16ccdf869994e0400fe797e94d75f189aac4932920b
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "0.42"
3
+ VERSION = "0.43"
4
4
  end
5
5
  end
@@ -153,8 +153,8 @@ module Megam
153
153
  self
154
154
  end
155
155
 
156
- def self.create(o,tmp_email=nil, tmp_api_key=nil)
157
- acct = from_hash(o,tmp_email, tmp_api_key)
156
+ def self.create(params)
157
+ acct = from_hash(params,params["email"], params["api_key"])
158
158
  acct.create
159
159
  end
160
160
 
@@ -183,8 +183,8 @@ module Megam
183
183
  pre.megam_rest.delete_balance(p_name)
184
184
  end
185
185
 
186
- def self.update(o,tmp_email=nil, tmp_api_key=nil)
187
- asm = from_hash(o, tmp_email, tmp_api_key)
186
+ def self.update(params)
187
+ asm = from_hash(params, params["email"], params["api_key"])
188
188
  asm.update
189
189
  end
190
190
 
@@ -158,8 +158,8 @@ module Megam
158
158
  self
159
159
  end
160
160
 
161
- def self.create(o,tmp_email=nil, tmp_api_key=nil)
162
- acct = from_hash(o,tmp_email, tmp_api_key)
161
+ def self.create(params)
162
+ acct = from_hash(params,params["email"], params["api_key"])
163
163
  acct.create
164
164
  end
165
165
 
@@ -171,8 +171,8 @@ module Megam
171
171
  # Load all credithistories -
172
172
  # returns a credithistoriesCollection
173
173
  # don't return self. check if the Megam::ccredithistoriesCollection is returned.
174
- def self.list(tmp_email=nil, tmp_api_key=nil)
175
- cts = self.new(tmp_email, tmp_api_key)
174
+ def self.list(params)
175
+ cts = self.new(params["email"], params["api_key"])
176
176
  cts.megam_rest.get_credithistories
177
177
  end
178
178
 
@@ -246,13 +246,13 @@ module Megam
246
246
  end
247
247
 
248
248
  # Load a account by email_p
249
- def self.show(tmp_email=nil, tmp_api_key=nil, name)
250
- app = self.new(tmp_email, tmp_api_key)
251
- app.megam_rest.get_marketplaceapp(name)
249
+ def self.show(params)
250
+ app = self.new(params["email"], params["api_key"])
251
+ app.megam_rest.get_marketplaceapp(params["id"])
252
252
  end
253
253
 
254
- def self.list(tmp_email=nil, tmp_api_key=nil)
255
- app = self.new(tmp_email, tmp_api_key)
254
+ def self.list(params)
255
+ app = self.new(params["email"], params["api_key"])
256
256
  app.megam_rest.get_marketplaceapps
257
257
  end
258
258
 
@@ -155,8 +155,8 @@ module Megam
155
155
  # Load all sshkeys -
156
156
  # returns a sshkeysCollection
157
157
  # don't return self. check if the Megam::SshKeyCollection is returned.
158
- def self.list(tmp_email=nil, tmp_api_key=nil)
159
- sshKey = self.new(tmp_email,tmp_api_key)
158
+ def self.list(params)
159
+ sshKey = self.new(params["email"], params["api_key"])
160
160
  sshKey.megam_rest.get_sshkeys
161
161
  end
162
162
 
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: '0.42'
4
+ version: '0.43'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajthilak, Kishorekumar Neelamegam, Thomas Alrin, Yeshwanth Kumar, Subash Sethurajan