Class: DeviceControl::Thermostat
- Inherits:
-
Controller
- Object
- Controller
- DeviceControl::Thermostat
- Defined in:
- lib/device_control.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Controller
Instance Method Summary collapse
-
#output ⇒ Object
true or false; can drive a Heater or a Cooler true means input below setpoint; false otherwise.
Methods inherited from Controller
Methods included from Updateable
Constructor Details
This class inherits a constructor from DeviceControl::Controller
Instance Method Details
#output ⇒ Object
true or false; can drive a Heater or a Cooler true means input below setpoint; false otherwise
111 112 113 |
# File 'lib/device_control.rb', line 111 def output @setpoint - @measure > 0 end |