Class: Brewby::TempSensor

Inherits:
Object
  • Object
show all
Defined in:
lib/brewby/temp_sensor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pinObject (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

#readObject



9
10
11
# File 'lib/brewby/temp_sensor.rb', line 9

def read
  0.0
end