Class: Boxcars::TrainFinish

Inherits:
Object
  • Object
show all
Defined in:
lib/boxcars/train/train_finish.rb

Overview

Train’s return value

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(return_values, log:) ⇒ TrainFinish

Returns a new instance of TrainFinish.



8
9
10
11
# File 'lib/boxcars/train/train_finish.rb', line 8

def initialize(return_values, log:)
  @return_values = return_values
  @log = log
end

Instance Attribute Details

#logObject

Returns the value of attribute log.



6
7
8
# File 'lib/boxcars/train/train_finish.rb', line 6

def log
  @log
end

#return_valuesObject

Returns the value of attribute return_values.



6
7
8
# File 'lib/boxcars/train/train_finish.rb', line 6

def return_values
  @return_values
end