onering-client 0.0.80 → 0.0.81
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/onering/cli/version.rb +1 -1
- data/lib/onering/plugins/devices.rb +4 -2
- metadata +1 -1
data/lib/onering/cli/version.rb
CHANGED
@@ -6,11 +6,13 @@ module Onering
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def get_field(id, field)
|
9
|
-
get("/devices/#{id}/get/#{field}")
|
9
|
+
rv = get("/devices/#{id}/get/#{field}")
|
10
|
+
rv.parsed_response rescue rv.response.body
|
10
11
|
end
|
11
12
|
|
12
13
|
def set_field(id, field, value)
|
13
|
-
get("/devices/#{id}/set/#{field}/#{value}")
|
14
|
+
rv = get("/devices/#{id}/set/#{field}/#{value}")
|
15
|
+
rv.parsed_response rescue rv.response.body
|
14
16
|
end
|
15
17
|
|
16
18
|
def list(field, options={
|