Module: Winker::Devices::GenericDevice
- Included in:
- Winker::Device
- Defined in:
- lib/winker/devices/generic_device.rb
Instance Method Summary collapse
Instance Method Details
#refresh ⇒ Object
4 5 6 |
# File 'lib/winker/devices/generic_device.rb', line 4 def refresh @obj_data = Winker.get_device(@type, @id) end |
#update(options) ⇒ Object
8 9 10 11 |
# File 'lib/winker/devices/generic_device.rb', line 8 def update() @updated_at = Time.now + Winker.server_time_dif Winker.update_device(@type, @id, ) end |