Class: TemperatureReadCommandline

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTemperatureReadCommandline

Returns a new instance of TemperatureReadCommandline.



11
12
13
# File 'lib/temperature_read_commandline.rb', line 11

def initialize
	@temp = 0
end

Instance Attribute Details

#tempObject (readonly)

Returns the value of attribute temp.



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

def temp
  @temp
end

Class Method Details

.commandline_temperature(temp) ⇒ Object


reading



17
18
19
20
# File 'lib/temperature_read_commandline.rb', line 17

def self.commandline_temperature temp
	temp = temp
	temp
end