Module: PushbulletRuby::API::Devices

Included in:
PushbulletRuby::API
Defined in:
lib/pushbullet_ruby/api/devices.rb

Instance Method Summary collapse

Instance Method Details

#devicesObject



4
5
6
# File 'lib/pushbullet_ruby/api/devices.rb', line 4

def devices
  PushbulletRuby::Device.from_responce(get('/v2/devices'))
end

#update_device(device_id: nil, params: {}) ⇒ Object



8
9
10
# File 'lib/pushbullet_ruby/api/devices.rb', line 8

def update_device(device_id: nil, params: {})
  PushbulletRuby::Device.new(post("/v2/devices/#{device_id}", params).body)
end