Class: CommandlineReader
- Inherits:
-
Object
- Object
- CommandlineReader
- Defined in:
- lib/reader/commandline_reader.rb
Instance Attribute Summary collapse
-
#temperature ⇒ Object
readonly
Returns the value of attribute temperature.
Instance Method Summary collapse
-
#initialize(commands) ⇒ CommandlineReader
constructor
A new instance of CommandlineReader.
Constructor Details
#initialize(commands) ⇒ CommandlineReader
Returns a new instance of CommandlineReader.
6 7 8 |
# File 'lib/reader/commandline_reader.rb', line 6 def initialize(commands) @temperature = commands.to_f end |
Instance Attribute Details
#temperature ⇒ Object (readonly)
Returns the value of attribute temperature.
4 5 6 |
# File 'lib/reader/commandline_reader.rb', line 4 def temperature @temperature end |