Module: NatureRemoApi::Endpoints::Device
- Included in:
- NatureRemoApi::Endpoints
- Defined in:
- lib/nature_remo_api/endpoints/device.rb
Instance Method Summary collapse
Instance Method Details
#devices ⇒ Object
4 5 6 |
# File 'lib/nature_remo_api/endpoints/device.rb', line 4 def devices get('/1/devices') end |
#update_device(device_id:, name:) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/nature_remo_api/endpoints/device.rb', line 8 def update_device(device_id:, name:) params = { name: name } post("/1/devices/#{device_id}", params) end |