Class: Boxcars::Generation
- Inherits:
-
Object
- Object
- Boxcars::Generation
- Defined in:
- lib/boxcars/generation.rb
Overview
Output of a single generation
Instance Attribute Summary collapse
-
#generation_info ⇒ Object
Returns the value of attribute generation_info.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text: nil, generation_info: nil) ⇒ Generation
constructor
A new instance of Generation.
Constructor Details
#initialize(text: nil, generation_info: nil) ⇒ Generation
Returns a new instance of Generation.
8 9 10 11 |
# File 'lib/boxcars/generation.rb', line 8 def initialize(text: nil, generation_info: nil) @text = text @generation_info = generation_info end |
Instance Attribute Details
#generation_info ⇒ Object
Returns the value of attribute generation_info.
6 7 8 |
# File 'lib/boxcars/generation.rb', line 6 def generation_info @generation_info end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/boxcars/generation.rb', line 6 def text @text end |