Class: Boxcars::EngineResult

Inherits:
Object
  • Object
show all
Defined in:
lib/boxcars/engine/engine_result.rb

Overview

Class that contains all the relevant information for a engine result

Instance Attribute Summary collapse

Instance Method Summary collapse

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_outputObject

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

#generationsObject

Returns the value of attribute generations.



6
7
8
# File 'lib/boxcars/engine/engine_result.rb', line 6

def generations
  @generations
end