Class: Boxcars::EngineResult
- Inherits:
-
Object
- Object
- Boxcars::EngineResult
- Defined in:
- lib/boxcars/engine/engine_result.rb
Overview
Class that contains all the relevant information for a engine result
Instance Attribute Summary collapse
-
#engine_output ⇒ Object
Returns the value of attribute engine_output.
-
#generations ⇒ Object
Returns the value of attribute generations.
Instance Method Summary collapse
-
#initialize(generations: nil, engine_output: nil) ⇒ EngineResult
constructor
A new instance of EngineResult.
Constructor Details
#initialize(generations: nil, engine_output: nil) ⇒ EngineResult
Returns a new instance of EngineResult.
8 9 10 11 |
# File 'lib/boxcars/engine/engine_result.rb', line 8 def initialize(generations: nil, engine_output: nil) @generations = generations @engine_output = engine_output end |
Instance Attribute Details
#engine_output ⇒ Object
Returns the value of attribute engine_output.
6 7 8 |
# File 'lib/boxcars/engine/engine_result.rb', line 6 def engine_output @engine_output end |
#generations ⇒ Object
Returns the value of attribute generations.
6 7 8 |
# File 'lib/boxcars/engine/engine_result.rb', line 6 def generations @generations end |