Module: NatureRemo::Endpoints::Devices
- Included in:
- NatureRemo::Endpoints
- Defined in:
- lib/nature_remo/endpoints/devices.rb
Overview
Endpoints for Nature Remo devices
Instance Method Summary collapse
-
#delete_device(device_id:) ⇒ String
Delete Remo.
-
#devices ⇒ String
Fetch the list of Remo devices the user has access to.
-
#update_device(device_id:, name:) ⇒ String
Update Remo Name.
-
#update_device_humidity_offset(device_id:, offset:) ⇒ String
Update humidity offset.
-
#update_device_temperature_offset(device_id:, offset:) ⇒ String
Update temperature offset.
Instance Method Details
#delete_device(device_id:) ⇒ String
Delete Remo. swagger.nature.global/#/default/post_1_devices__device__delete
33 34 35 |
# File 'lib/nature_remo/endpoints/devices.rb', line 33 def delete_device(device_id:) post("devices/#{device_id}/delete") end |
#devices ⇒ String
Fetch the list of Remo devices the user has access to. swagger.nature.global/#/default/get_1_devices
12 13 14 |
# File 'lib/nature_remo/endpoints/devices.rb', line 12 def devices get('devices') end |
#update_device(device_id:, name:) ⇒ String
Update Remo Name. swagger.nature.global/#/default/post_1_devices_device
23 24 25 |
# File 'lib/nature_remo/endpoints/devices.rb', line 23 def update_device(device_id:, name:) post("devices/#{device_id}", { name: name }) end |
#update_device_humidity_offset(device_id:, offset:) ⇒ String
Update humidity offset. swagger.nature.global/#/default/post_1_devices__device__humidity_offset
55 56 57 |
# File 'lib/nature_remo/endpoints/devices.rb', line 55 def update_device_humidity_offset(device_id:, offset:) post("devices/#{device_id}/humidity_offset", { offset: offset }) end |
#update_device_temperature_offset(device_id:, offset:) ⇒ String
Update temperature offset. swagger.nature.global/#/default/post_1_devices__device__temperature_offset
44 45 46 |
# File 'lib/nature_remo/endpoints/devices.rb', line 44 def update_device_temperature_offset(device_id:, offset:) post("devices/#{device_id}/temperature_offset", { offset: offset }) end |