rightresource 0.2.3 → 0.2.4
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.
- data/lib/right_resource/server.rb +3 -1
- data/lib/right_resource/server_array.rb +3 -1
- metadata +3 -3
|
@@ -36,7 +36,9 @@ class Server < RightResource::Base
|
|
|
36
36
|
|
|
37
37
|
def settings(id)
|
|
38
38
|
path = element_path(id, :settings)
|
|
39
|
-
|
|
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
|
-
|
|
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:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Satoshi Ohki
|