Class: Boxcars::Generation

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

Overview

Output of a single generation

Instance Attribute Summary collapse

Instance Method Summary collapse

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_infoObject

Returns the value of attribute generation_info.



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

def generation_info
  @generation_info
end

#textObject

Returns the value of attribute text.



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

def text
  @text
end