Class: Jumon::Configuration
- Inherits:
-
Object
- Object
- Jumon::Configuration
- Defined in:
- lib/jumon/configuration.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#temperature ⇒ Object
readonly
Returns the value of attribute temperature.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Configuration
constructor
A new instance of Configuration.
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
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/jumon/configuration.rb', line 5 def model @model end |
#temperature ⇒ Object (readonly)
Returns the value of attribute temperature.
5 6 7 |
# File 'lib/jumon/configuration.rb', line 5 def temperature @temperature end |