Class: Jumon::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(yaml) ⇒ Configuration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/jumon/configuration.rb', line 7

def initialize(yaml)
  config = yaml[:config]
  @model = config[:model]
  @temperature = config[:temperature]
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



5
6
7
# File 'lib/jumon/configuration.rb', line 5

def model
  @model
end

#temperatureObject (readonly)

Returns the value of attribute temperature.



5
6
7
# File 'lib/jumon/configuration.rb', line 5

def temperature
  @temperature
end