Class: CommandlineReader

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#temperatureObject (readonly)

Returns the value of attribute temperature.



4
5
6
# File 'lib/reader/commandline_reader.rb', line 4

def temperature
  @temperature
end