rightresource 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,9 @@ class Server < RightResource::Base
36
36
 
37
37
  def settings(id)
38
38
  path = element_path(id, :settings)
39
- generate_attributes(format.decode(connection.get(path)))
39
+ result = format.decode(connection.get(path)).map do |instance|
40
+ generate_attributes(instance)
41
+ end
40
42
  end
41
43
  end
42
44
  end
@@ -14,7 +14,9 @@ class ServerArray < RightResource::Base
14
14
 
15
15
  def instances(id)
16
16
  path = element_path(id, :instances)
17
- generate_attributes(format.decode(connection.get(path)))
17
+ result = format.decode(connection.get(path)).map do |instance|
18
+ generate_attributes(instance)
19
+ end
18
20
  end
19
21
  end
20
22
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rightresource
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Satoshi Ohki