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 +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/balances.rb +4 -4
- data/lib/megam/core/credithistories.rb +4 -4
- data/lib/megam/core/marketplace.rb +5 -5
- data/lib/megam/core/sshkey.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eebcad90954af1dae6376ace92b915a35f81261d
|
4
|
+
data.tar.gz: a8bb083480de64a1d065b05a65d00217ed133e94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20ad0b6ec7dfec6c8ff75d09542e3e248c3465f56f6cb985bf873325535d8c5e178898f1cb63746ef0f9ae64cc23cb76293a5282275c08f29e47afa2a22c5f9
|
7
|
+
data.tar.gz: a7f4fb0c29ff96796ffde4f4b70de1500de753dad418cf0a61a29475b8f3b0e374b7438b977437732646b16ccdf869994e0400fe797e94d75f189aac4932920b
|
data/lib/megam/api/version.rb
CHANGED
data/lib/megam/core/balances.rb
CHANGED
@@ -153,8 +153,8 @@ module Megam
|
|
153
153
|
self
|
154
154
|
end
|
155
155
|
|
156
|
-
def self.create(
|
157
|
-
acct = from_hash(
|
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(
|
187
|
-
asm = from_hash(
|
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(
|
162
|
-
acct = from_hash(
|
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(
|
175
|
-
cts = self.new(
|
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(
|
250
|
-
app = self.new(
|
251
|
-
app.megam_rest.get_marketplaceapp(
|
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(
|
255
|
-
app = self.new(
|
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
|
|
data/lib/megam/core/sshkey.rb
CHANGED
@@ -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(
|
159
|
-
sshKey = self.new(
|
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
|
|