megam_api 0.33 → 0.34
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/lib/megam/api.rb +0 -1
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/core/components.rb +14 -1
- data/test/test_components.rb +1 -0
- 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: 48d98b440aacee89bf589b95006d1319f8714a39
|
|
4
|
+
data.tar.gz: c1fcfa07672d7b294a1532b86d648145d1b568e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dab2ba21f6079e255f61e626e525a88fb091ce203192b93971fc4bf11cda36092e3ae8d743b30f022c267e24cf444f7c913ff795062ec7e73fe6c17041f0150b
|
|
7
|
+
data.tar.gz: f88093b0d63464417b3d9f6a803c0af334cf45b57aacf72b647467a08092596aa59881a09771382864ea4f109e0568844511e1cccc7c2be883a405e21e49ceb2
|
data/lib/megam/api.rb
CHANGED
data/lib/megam/api/version.rb
CHANGED
|
@@ -47,6 +47,7 @@ module Megam
|
|
|
47
47
|
@operations = {}
|
|
48
48
|
@operation_type = nil
|
|
49
49
|
@target_resource = nil
|
|
50
|
+
@others = []
|
|
50
51
|
@created_at = nil
|
|
51
52
|
|
|
52
53
|
super(email, api_key)
|
|
@@ -295,6 +296,14 @@ module Megam
|
|
|
295
296
|
@target_resource
|
|
296
297
|
end
|
|
297
298
|
end
|
|
299
|
+
|
|
300
|
+
def others(arg=nil)
|
|
301
|
+
if arg != nil
|
|
302
|
+
@others = arg
|
|
303
|
+
else
|
|
304
|
+
@others
|
|
305
|
+
end
|
|
306
|
+
end
|
|
298
307
|
|
|
299
308
|
def created_at(arg=nil)
|
|
300
309
|
if arg != nil
|
|
@@ -321,6 +330,7 @@ module Megam
|
|
|
321
330
|
index_hash["artifacts"] = artifacts
|
|
322
331
|
index_hash["related_components"] = related_components
|
|
323
332
|
index_hash["operations"] = operations
|
|
333
|
+
index_hash["others"] = others
|
|
324
334
|
index_hash["created_at"] = created_at
|
|
325
335
|
index_hash
|
|
326
336
|
end
|
|
@@ -342,6 +352,7 @@ module Megam
|
|
|
342
352
|
"artifacts" => artifacts,
|
|
343
353
|
"related_components" => related_components,
|
|
344
354
|
"operations" => operations,
|
|
355
|
+
"others" => others,
|
|
345
356
|
"created_at" => created_at
|
|
346
357
|
}
|
|
347
358
|
result
|
|
@@ -388,7 +399,8 @@ module Megam
|
|
|
388
399
|
ope = o["operations"]
|
|
389
400
|
asm.operations[:operation_type] = ope["operation_type"] if ope && ope.has_key?("operation_type")
|
|
390
401
|
asm.operations[:target_resource] = ope["target_resource"] if ope && ope.has_key?("target_resource")
|
|
391
|
-
|
|
402
|
+
|
|
403
|
+
asm.others(o["others"]) if o.has_key?("others")
|
|
392
404
|
asm.created_at(o["created_at"]) if o.has_key?("created_at")
|
|
393
405
|
asm
|
|
394
406
|
end
|
|
@@ -409,6 +421,7 @@ module Megam
|
|
|
409
421
|
@artifacts = o["artifacts"] if o.has_key?("artifacts")
|
|
410
422
|
@related_components = o["related_components"] if o.has_key?("related_components")
|
|
411
423
|
@operations = o["operations"] if o.has_key?("operations")
|
|
424
|
+
@others = o["others"] if o.has_key?("others")
|
|
412
425
|
@created_at = o["created_at"] if o.has_key?("created_at")
|
|
413
426
|
self
|
|
414
427
|
end
|
data/test/test_components.rb
CHANGED