lib/washbullet/api/devices.rb in washbullet-0.3.1 vs lib/washbullet/api/devices.rb in washbullet-0.4.0

- old
+ new

@@ -1,13 +1,19 @@ module Washbullet module API module Devices def devices - get '/v2/devices' + response = get('/v2/devices') + + Washbullet::Device.from_response(response) end - def delete_device(device_iden) - delete "/v2/devices/#{device_iden}" + def update_device + raise NotImplementedError + end + + def delete_device + raise NotImplementedError end end end end