lib/onering/plugins/devices.rb in onering-client-0.0.10 vs lib/onering/plugins/devices.rb in onering-client-0.0.15
- old
+ new
@@ -9,9 +9,17 @@
def get(id)
request("devices/#{id}")
end
+ def get_field(id, field)
+ request("devices/#{id}/get/#{field}")
+ end
+
+ def set_field(id, field, value)
+ request("devices/#{id}/set/#{field}/#{value}")
+ end
+
def list(field, options={
:unique => true,
:sort => true,
:filter => nil
})