megam_api 0.63 → 0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/megam/api.rb +2 -1
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/account.rb +5 -5
- data/lib/megam/core/assemblies.rb +8 -8
- data/lib/megam/core/assembly.rb +6 -6
- data/lib/megam/core/auth.rb +1 -1
- data/lib/megam/core/availableunits.rb +12 -12
- data/lib/megam/core/balances.rb +10 -10
- data/lib/megam/core/billinghistories.rb +11 -11
- data/lib/megam/core/billings.rb +10 -10
- data/lib/megam/core/cat_requests.rb +5 -5
- data/lib/megam/core/cloudtoolsetting.rb +10 -10
- data/lib/megam/core/components.rb +7 -7
- data/lib/megam/core/credithistories.rb +8 -8
- data/lib/megam/core/csar.rb +12 -12
- data/lib/megam/core/discounts.rb +8 -8
- data/lib/megam/core/domains.rb +5 -5
- data/lib/megam/core/event.rb +8 -9
- data/lib/megam/core/marketplace.rb +7 -7
- data/lib/megam/core/marketplace_addon.rb +8 -8
- data/lib/megam/core/organizations.rb +39 -45
- data/lib/megam/core/predefcloud.rb +12 -12
- data/lib/megam/core/promos.rb +6 -6
- data/lib/megam/core/request.rb +8 -8
- data/lib/megam/core/server_api.rb +4 -2
- data/lib/megam/core/sshkey.rb +7 -7
- data/lib/megam/core/subscriptions.rb +10 -10
- metadata +3 -3
@@ -16,7 +16,7 @@
|
|
16
16
|
module Megam
|
17
17
|
class CloudToolSetting < Megam::ServerAPI
|
18
18
|
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@accounts_id = nil
|
22
22
|
@cloud_type = nil
|
@@ -26,7 +26,7 @@ module Megam
|
|
26
26
|
@conf_location=nil
|
27
27
|
@created_at = nil
|
28
28
|
@some_msg = {}
|
29
|
-
super(email, api_key)
|
29
|
+
super(email, api_key, host)
|
30
30
|
end
|
31
31
|
|
32
32
|
def cloud_tool_setting
|
@@ -166,8 +166,8 @@ module Megam
|
|
166
166
|
cts
|
167
167
|
end
|
168
168
|
|
169
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
170
|
-
cts = self.new(tmp_email,tmp_api_key)
|
169
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
170
|
+
cts = self.new(tmp_email,tmp_api_key, tmp_host)
|
171
171
|
cts.from_hash(o)
|
172
172
|
cts
|
173
173
|
end
|
@@ -184,8 +184,8 @@ module Megam
|
|
184
184
|
self
|
185
185
|
end
|
186
186
|
|
187
|
-
def self.create(o,tmp_email=nil, tmp_api_key=nil)
|
188
|
-
acct = from_hash(o,tmp_email, tmp_api_key)
|
187
|
+
def self.create(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
188
|
+
acct = from_hash(o,tmp_email, tmp_api_key, tmp_host)
|
189
189
|
acct.create
|
190
190
|
end
|
191
191
|
|
@@ -197,15 +197,15 @@ module Megam
|
|
197
197
|
# Load all cloudtoolsettings -
|
198
198
|
# returns a cloudtoolsettingsCollection
|
199
199
|
# don't return self. check if the Megam::cloudtoolsettingCollection is returned.
|
200
|
-
def self.list(tmp_email=nil, tmp_api_key=nil)
|
201
|
-
cts = self.new(tmp_email, tmp_api_key)
|
200
|
+
def self.list(tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
201
|
+
cts = self.new(tmp_email, tmp_api_key, tmp_host)
|
202
202
|
cts.megam_rest.get_cloudtoolsettings
|
203
203
|
end
|
204
204
|
|
205
205
|
# Show a particular cloudtoolsetting by name,
|
206
206
|
# Megam::cloudtoolsetting
|
207
|
-
def self.show(p_name,tmp_email=nil, tmp_api_key=nil)
|
208
|
-
pre = self.new(tmp_email, tmp_api_key)
|
207
|
+
def self.show(p_name,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
208
|
+
pre = self.new(tmp_email, tmp_api_key, tmp_host)
|
209
209
|
pre.megam_rest.get_cloudtoolsetting(p_name)
|
210
210
|
end
|
211
211
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
module Megam
|
18
18
|
class Components < Megam::ServerAPI
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@name =nil
|
22
22
|
@tosca_type = nil
|
@@ -31,7 +31,7 @@ module Megam
|
|
31
31
|
@status = nil
|
32
32
|
@created_at = nil
|
33
33
|
|
34
|
-
super(email, api_key)
|
34
|
+
super(email, api_key, host)
|
35
35
|
end
|
36
36
|
|
37
37
|
def components
|
@@ -205,8 +205,8 @@ module Megam
|
|
205
205
|
asm
|
206
206
|
end
|
207
207
|
|
208
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
209
|
-
asm = self.new(tmp_email, tmp_api_key)
|
208
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
209
|
+
asm = self.new(tmp_email, tmp_api_key, tmp_host)
|
210
210
|
asm.from_hash(o)
|
211
211
|
asm
|
212
212
|
end
|
@@ -226,18 +226,18 @@ module Megam
|
|
226
226
|
end
|
227
227
|
|
228
228
|
def self.create(params)
|
229
|
-
asm = from_hash(params, params["email"], params["api_key"])
|
229
|
+
asm = from_hash(params, params["email"], params["api_key"], params["host"])
|
230
230
|
asm.create
|
231
231
|
end
|
232
232
|
|
233
233
|
# Load a account by email_p
|
234
234
|
def self.show(params)
|
235
|
-
asm = self.new(params["email"], params["api_key"])
|
235
|
+
asm = self.new(params["email"], params["api_key"], params["host"])
|
236
236
|
asm.megam_rest.get_components(params["id"])
|
237
237
|
end
|
238
238
|
|
239
239
|
def self.update(params)
|
240
|
-
asm = from_hash(params, params["email"] || params[:email], params["api_key"] || params[:api_key])
|
240
|
+
asm = from_hash(params, params["email"] || params[:email], params["api_key"] || params[:api_key], params["host"] || params[:host])
|
241
241
|
asm.update
|
242
242
|
end
|
243
243
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
module Megam
|
17
17
|
class Credithistories < Megam::ServerAPI
|
18
18
|
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@accounts_id = nil
|
22
22
|
@bill_type = nil
|
@@ -24,7 +24,7 @@ module Megam
|
|
24
24
|
@currency_type = nil
|
25
25
|
@created_at = nil
|
26
26
|
@some_msg = {}
|
27
|
-
super(email, api_key)
|
27
|
+
super(email, api_key, host)
|
28
28
|
end
|
29
29
|
|
30
30
|
def credithistories
|
@@ -142,8 +142,8 @@ module Megam
|
|
142
142
|
cts
|
143
143
|
end
|
144
144
|
|
145
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
146
|
-
cts = self.new(tmp_email,tmp_api_key)
|
145
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
146
|
+
cts = self.new(tmp_email,tmp_api_key, tmp_host)
|
147
147
|
cts.from_hash(o)
|
148
148
|
cts
|
149
149
|
end
|
@@ -159,7 +159,7 @@ module Megam
|
|
159
159
|
end
|
160
160
|
|
161
161
|
def self.create(params)
|
162
|
-
acct = from_hash(params,params["email"], params["api_key"])
|
162
|
+
acct = from_hash(params,params["email"], params["api_key"], params["host"])
|
163
163
|
acct.create
|
164
164
|
end
|
165
165
|
|
@@ -172,14 +172,14 @@ module Megam
|
|
172
172
|
# returns a credithistoriesCollection
|
173
173
|
# don't return self. check if the Megam::ccredithistoriesCollection is returned.
|
174
174
|
def self.list(params)
|
175
|
-
cts = self.new(params["email"], params["api_key"])
|
175
|
+
cts = self.new(params["email"], params["api_key"], params["host"])
|
176
176
|
cts.megam_rest.get_credithistories
|
177
177
|
end
|
178
178
|
|
179
179
|
# Show a particular credithistories by name,
|
180
180
|
# Megam::credithistories
|
181
|
-
def self.show(p_name,tmp_email=nil, tmp_api_key=nil)
|
182
|
-
pre = self.new(tmp_email, tmp_api_key)
|
181
|
+
def self.show(p_name,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
182
|
+
pre = self.new(tmp_email, tmp_api_key, tmp_host)
|
183
183
|
pre.megam_rest.get_credithistories(p_name)
|
184
184
|
end
|
185
185
|
|
data/lib/megam/core/csar.rb
CHANGED
@@ -16,13 +16,13 @@
|
|
16
16
|
|
17
17
|
module Megam
|
18
18
|
class CSAR < Megam::ServerAPI
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@desc = nil
|
22
22
|
@link = {}
|
23
23
|
@some_msg = {}
|
24
24
|
@created_at = nil
|
25
|
-
super(email, api_key)
|
25
|
+
super(email, api_key, host)
|
26
26
|
end
|
27
27
|
|
28
28
|
def csar
|
@@ -126,8 +126,8 @@ module Megam
|
|
126
126
|
csarjslf
|
127
127
|
end
|
128
128
|
|
129
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
130
|
-
csarhslf = self.new(tmp_email, tmp_api_key)
|
129
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
130
|
+
csarhslf = self.new(tmp_email, tmp_api_key, tmp_host)
|
131
131
|
csarhslf.from_hash(o)
|
132
132
|
csarhslf
|
133
133
|
end
|
@@ -142,8 +142,8 @@ module Megam
|
|
142
142
|
end
|
143
143
|
|
144
144
|
#This won't work, as the body just needs the yaml string.
|
145
|
-
def self.create(o,tmp_email=nil, tmp_api_key=nil)
|
146
|
-
csarslf = from_hash(o, tmp_email, tmp_api_key)
|
145
|
+
def self.create(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
146
|
+
csarslf = from_hash(o, tmp_email, tmp_api_key, tmp_host)
|
147
147
|
csarslf.create
|
148
148
|
end
|
149
149
|
|
@@ -154,20 +154,20 @@ module Megam
|
|
154
154
|
end
|
155
155
|
|
156
156
|
# Load the yaml back from the link
|
157
|
-
def self.show(tmp_email=nil, tmp_api_key=nil, csarlink_name)
|
158
|
-
csarslf = self.new(tmp_email, tmp_api_key)
|
157
|
+
def self.show(tmp_email=nil, tmp_api_key=nil, tmp_host=nil, csarlink_name)
|
158
|
+
csarslf = self.new(tmp_email, tmp_api_key, tmp_host)
|
159
159
|
csarslf.megam_rest.get_csar(csarlink_name)
|
160
160
|
end
|
161
161
|
|
162
162
|
#list all csars (links)
|
163
|
-
def self.list(tmp_email=nil, tmp_api_key=nil)
|
164
|
-
csarslf = self.new(tmp_email, tmp_api_key)
|
163
|
+
def self.list(tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
164
|
+
csarslf = self.new(tmp_email, tmp_api_key, tmp_host)
|
165
165
|
csarslf.megam_rest.get_csars
|
166
166
|
end
|
167
167
|
|
168
168
|
#push csar (links)
|
169
|
-
def self.push(tmp_email=nil, tmp_api_key=nil, csar_id)
|
170
|
-
csarslf = self.new(tmp_email, tmp_api_key)
|
169
|
+
def self.push(tmp_email=nil, tmp_api_key=nil, tmp_host=nil, csar_id)
|
170
|
+
csarslf = self.new(tmp_email, tmp_api_key, tmp_host)
|
171
171
|
csarslf.megam_rest.push_csar(csar_id)
|
172
172
|
end
|
173
173
|
|
data/lib/megam/core/discounts.rb
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
module Megam
|
17
17
|
class Discounts < Megam::ServerAPI
|
18
18
|
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@accounts_id = nil
|
22
22
|
@bill_type = nil
|
@@ -24,7 +24,7 @@ module Megam
|
|
24
24
|
@status = nil
|
25
25
|
@created_at = nil
|
26
26
|
@some_msg = {}
|
27
|
-
super(email, api_key)
|
27
|
+
super(email, api_key, host)
|
28
28
|
end
|
29
29
|
|
30
30
|
def cloud_tool_setting
|
@@ -142,8 +142,8 @@ module Megam
|
|
142
142
|
cts
|
143
143
|
end
|
144
144
|
|
145
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
146
|
-
cts = self.new(tmp_email,tmp_api_key)
|
145
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
146
|
+
cts = self.new(tmp_email,tmp_api_key,tmp_host)
|
147
147
|
cts.from_hash(o)
|
148
148
|
cts
|
149
149
|
end
|
@@ -160,7 +160,7 @@ module Megam
|
|
160
160
|
|
161
161
|
def self.create(params)
|
162
162
|
|
163
|
-
discount = from_hash(params, params[:email], params[:api_key])
|
163
|
+
discount = from_hash(params, params[:email], params[:api_key], params[:host])
|
164
164
|
discount.create
|
165
165
|
end
|
166
166
|
|
@@ -184,15 +184,15 @@ module Megam
|
|
184
184
|
# returns a discountsCollection
|
185
185
|
# don't return self. check if the Megam::discountsCollection is returned.
|
186
186
|
def self.list(params)
|
187
|
-
cts = self.new(params[:email], params[:api_key])
|
187
|
+
cts = self.new(params[:email], params[:api_key], params[:host])
|
188
188
|
|
189
189
|
cts.megam_rest.get_discounts
|
190
190
|
end
|
191
191
|
|
192
192
|
# Show a particular discounts by name,
|
193
193
|
# Megam::discounts
|
194
|
-
def self.show(p_name,tmp_email=nil, tmp_api_key=nil)
|
195
|
-
pre = self.new(tmp_email, tmp_api_key)
|
194
|
+
def self.show(p_name,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
195
|
+
pre = self.new(tmp_email, tmp_api_key, tmp_host)
|
196
196
|
pre.megam_rest.get_discounts(p_name)
|
197
197
|
end
|
198
198
|
|
data/lib/megam/core/domains.rb
CHANGED
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
module Megam
|
18
18
|
class Domains < Megam::ServerAPI
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@name = nil
|
22
22
|
@created_at = nil
|
23
|
-
super(email, api_key)
|
23
|
+
super(email, api_key, host)
|
24
24
|
end
|
25
25
|
|
26
26
|
|
@@ -91,7 +91,7 @@ def self.json_create(o)
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def self.from_hash(o)
|
94
|
-
dmn = self.new(o[:email], o[:api_key])
|
94
|
+
dmn = self.new(o[:email], o[:api_key], o[:host])
|
95
95
|
dmn.from_hash(o)
|
96
96
|
dmn
|
97
97
|
end
|
@@ -109,8 +109,8 @@ def self.create(o)
|
|
109
109
|
end
|
110
110
|
|
111
111
|
# Load a Domain by email_p
|
112
|
-
def self.show(email,api_key=nil)
|
113
|
-
dmn = self.new(email, api_key)
|
112
|
+
def self.show(email,api_key,host=nil)
|
113
|
+
dmn = self.new(email, api_key, host)
|
114
114
|
dmn.megam_rest.get_domains(email)
|
115
115
|
end
|
116
116
|
|
data/lib/megam/core/event.rb
CHANGED
@@ -16,12 +16,12 @@
|
|
16
16
|
|
17
17
|
module Megam
|
18
18
|
class Event < Megam::ServerAPI
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@a_id = nil
|
21
21
|
@a_name = nil
|
22
22
|
@command = nil
|
23
23
|
@launch_type = nil
|
24
|
-
super(email, api_key)
|
24
|
+
super(email, api_key, host)
|
25
25
|
end
|
26
26
|
|
27
27
|
def event
|
@@ -105,8 +105,8 @@ module Megam
|
|
105
105
|
event
|
106
106
|
end
|
107
107
|
|
108
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
109
|
-
event = self.new(tmp_email, tmp_api_key)
|
108
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
109
|
+
event = self.new(tmp_email, tmp_api_key, tmp_host)
|
110
110
|
event.from_hash(o)
|
111
111
|
event
|
112
112
|
end
|
@@ -120,9 +120,8 @@ module Megam
|
|
120
120
|
self
|
121
121
|
end
|
122
122
|
|
123
|
-
def self.create(o,tmp_email=nil, tmp_api_key=nil)
|
124
|
-
|
125
|
-
event = from_hash(o, tmp_email, tmp_api_key)
|
123
|
+
def self.create(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
124
|
+
event = from_hash(o, tmp_email, tmp_api_key, tmp_host)
|
126
125
|
event.create
|
127
126
|
end
|
128
127
|
|
@@ -133,8 +132,8 @@ module Megam
|
|
133
132
|
|
134
133
|
|
135
134
|
|
136
|
-
def self.list(tmp_email=nil, tmp_api_key=nil, inflated=false)
|
137
|
-
event = self.new(tmp_email, tmp_api_key)
|
135
|
+
def self.list(tmp_email=nil, tmp_api_key=nil, tmp_host=nil, inflated=false)
|
136
|
+
event = self.new(tmp_email, tmp_api_key, tmp_host)
|
138
137
|
event.megam_rest.get_events
|
139
138
|
end
|
140
139
|
|
@@ -17,7 +17,7 @@ require 'hashie'
|
|
17
17
|
|
18
18
|
module Megam
|
19
19
|
class MarketPlace < Megam::ServerAPI
|
20
|
-
def initialize(email=nil, api_key=nil)
|
20
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
21
21
|
@id = nil
|
22
22
|
@name = nil
|
23
23
|
@catalog = {}
|
@@ -27,7 +27,7 @@ module Megam
|
|
27
27
|
@some_msg = {}
|
28
28
|
@status = nil
|
29
29
|
@created_at = nil
|
30
|
-
super(email, api_key)
|
30
|
+
super(email, api_key, host)
|
31
31
|
end
|
32
32
|
|
33
33
|
def market_place
|
@@ -175,8 +175,8 @@ module Megam
|
|
175
175
|
app
|
176
176
|
end
|
177
177
|
|
178
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
179
|
-
app = self.new(tmp_email, tmp_api_key)
|
178
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
179
|
+
app = self.new(tmp_email, tmp_api_key, tmp_host)
|
180
180
|
app.from_hash(o)
|
181
181
|
app
|
182
182
|
end
|
@@ -194,7 +194,7 @@ module Megam
|
|
194
194
|
end
|
195
195
|
|
196
196
|
def self.create(params)
|
197
|
-
acct = from_hash(params, params["email"], params["api_key"])
|
197
|
+
acct = from_hash(params, params["email"], params["api_key"], params["host"])
|
198
198
|
acct.create
|
199
199
|
end
|
200
200
|
|
@@ -205,12 +205,12 @@ module Megam
|
|
205
205
|
|
206
206
|
# Load a account by email_p
|
207
207
|
def self.show(params)
|
208
|
-
app = self.new(params["email"], params["api_key"])
|
208
|
+
app = self.new(params["email"], params["api_key"], params["host"])
|
209
209
|
app.megam_rest.get_marketplaceapp(params["id"])
|
210
210
|
end
|
211
211
|
|
212
212
|
def self.list(params)
|
213
|
-
app = self.new(params["email"], params["api_key"])
|
213
|
+
app = self.new(params["email"], params["api_key"], params["host"])
|
214
214
|
app.megam_rest.get_marketplaceapps
|
215
215
|
end
|
216
216
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
module Megam
|
17
17
|
class MarketPlaceAddons< Megam::ServerAPI
|
18
18
|
|
19
|
-
def initialize(email=nil, api_key=nil)
|
19
|
+
def initialize(email=nil, api_key=nil, host=nil)
|
20
20
|
@id = nil
|
21
21
|
@node_id = nil
|
22
22
|
@node_name = nil
|
@@ -25,7 +25,7 @@ module Megam
|
|
25
25
|
@config_id = nil
|
26
26
|
@created_at = nil
|
27
27
|
@some_msg = {}
|
28
|
-
super(email,api_key)
|
28
|
+
super(email,api_key,host)
|
29
29
|
end
|
30
30
|
|
31
31
|
def market_place_addons
|
@@ -153,8 +153,8 @@ module Megam
|
|
153
153
|
addon
|
154
154
|
end
|
155
155
|
|
156
|
-
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil)
|
157
|
-
addon = self.new(tmp_email, tmp_api_key)
|
156
|
+
def self.from_hash(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
157
|
+
addon = self.new(tmp_email, tmp_api_key, tmp_host)
|
158
158
|
addon.from_hash(o)
|
159
159
|
addon
|
160
160
|
end
|
@@ -170,8 +170,8 @@ module Megam
|
|
170
170
|
self
|
171
171
|
end
|
172
172
|
|
173
|
-
def self.create(o,tmp_email=nil, tmp_api_key=nil)
|
174
|
-
acct = from_hash(o,tmp_email, tmp_api_key)
|
173
|
+
def self.create(o,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
174
|
+
acct = from_hash(o,tmp_email, tmp_api_key, tmp_host)
|
175
175
|
acct.create
|
176
176
|
end
|
177
177
|
|
@@ -181,8 +181,8 @@ module Megam
|
|
181
181
|
end
|
182
182
|
|
183
183
|
# Load a account by email_p
|
184
|
-
def self.list(node_name,tmp_email=nil, tmp_api_key=nil)
|
185
|
-
addon = self.new(tmp_email, tmp_api_key)
|
184
|
+
def self.list(node_name,tmp_email=nil, tmp_api_key=nil, tmp_host=nil)
|
185
|
+
addon = self.new(tmp_email, tmp_api_key, tmp_host)
|
186
186
|
addon.megam_rest.get_addons(node_name)
|
187
187
|
#self
|
188
188
|
end
|