Class: Boxcars::TrainFinish
- Inherits:
-
Object
- Object
- Boxcars::TrainFinish
- Defined in:
- lib/boxcars/train/train_finish.rb
Overview
Train’s return value
Instance Attribute Summary collapse
-
#log ⇒ Object
Returns the value of attribute log.
-
#return_values ⇒ Object
Returns the value of attribute return_values.
Instance Method Summary collapse
-
#initialize(return_values, log:) ⇒ TrainFinish
constructor
A new instance of TrainFinish.
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
#log ⇒ Object
Returns the value of attribute log.
6 7 8 |
# File 'lib/boxcars/train/train_finish.rb', line 6 def log @log end |
#return_values ⇒ Object
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 |