Class: Denko::Sensor::Humidity
- Inherits:
-
Object
- Object
- Denko::Sensor::Humidity
- Includes:
- Behaviors::Poller
- Defined in:
- lib/denko/sensor/virtual.rb
Instance Attribute Summary
Attributes included from Behaviors::Threaded
Attributes included from Behaviors::Callbacks
Instance Method Summary collapse
- #_read ⇒ Object
-
#initialize(sensor) ⇒ Humidity
constructor
A new instance of Humidity.
Methods included from Behaviors::Poller
Methods included from Behaviors::Threaded
#enable_interrupts, included, #stop, #stop_thread, #threaded, #threaded_loop
Methods included from Behaviors::Reader
#read, #read_using, #wait_for_read
Methods included from Behaviors::Callbacks
#add_callback, #callbacks, #pre_callback_filter, #remove_callback, #update
Methods included from Behaviors::State
Constructor Details
#initialize(sensor) ⇒ Humidity
Returns a new instance of Humidity.
30 31 32 33 |
# File 'lib/denko/sensor/virtual.rb', line 30 def initialize(sensor) @sensor = sensor super end |
Instance Method Details
#_read ⇒ Object
35 36 37 |
# File 'lib/denko/sensor/virtual.rb', line 35 def _read @sensor.read_humidity end |