lib/onering/plugins/devices.rb in onering-client-0.0.80 vs lib/onering/plugins/devices.rb in onering-client-0.0.81

- old
+ new

@@ -4,14 +4,16 @@ def show(id) get("/devices/#{id}").parsed_response end def get_field(id, field) - get("/devices/#{id}/get/#{field}").response.body + rv = get("/devices/#{id}/get/#{field}") + rv.parsed_response rescue rv.response.body end def set_field(id, field, value) - get("/devices/#{id}/set/#{field}/#{value}").response.body + rv = get("/devices/#{id}/set/#{field}/#{value}") + rv.parsed_response rescue rv.response.body end def list(field, options={ :unique => true, :sort => true,