Class: Thermostat
- Inherits:
-
Controller
- Object
- Controller
- 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 Controller
Instance Method Details
#output ⇒ Object
true or false; can drive a Heater or a Cooler true means input below setpoint; false otherwise
110 111 112 |
# File 'lib/device_control.rb', line 110 def output @setpoint - @measure > 0 end |