Class: Brewby::TempSensor
- Inherits:
-
Object
- Object
- Brewby::TempSensor
- Defined in:
- lib/brewby/temp_sensor.rb
Instance Attribute Summary collapse
-
#input_pin ⇒ Object
readonly
Returns the value of attribute input_pin.
Instance Method Summary collapse
-
#initialize(input_pin) ⇒ TempSensor
constructor
A new instance of TempSensor.
- #read ⇒ Object
Constructor Details
#initialize(input_pin) ⇒ TempSensor
Returns a new instance of TempSensor.
5 6 7 |
# File 'lib/brewby/temp_sensor.rb', line 5 def initialize input_pin @input_pin = input_pin end |
Instance Attribute Details
#input_pin ⇒ Object (readonly)
Returns the value of attribute input_pin.
3 4 5 |
# File 'lib/brewby/temp_sensor.rb', line 3 def input_pin @input_pin end |
Instance Method Details
#read ⇒ Object
9 10 11 |
# File 'lib/brewby/temp_sensor.rb', line 9 def read 0.0 end |