Class: Tdc::Generators::GenerationContext
- Inherits:
-
Object
- Object
- Tdc::Generators::GenerationContext
- Defined in:
- lib/tdc/generators/generation_context.rb
Overview
Knows all the parameters that define the context for generation.
Instance Attribute Summary collapse
-
#current_catalog ⇒ Object
readonly
Returns the value of attribute current_catalog.
-
#data_definition ⇒ Object
readonly
Returns the value of attribute data_definition.
Instance Method Summary collapse
-
#initialize(current_catalog:, data_definition:) ⇒ GenerationContext
constructor
A new instance of GenerationContext.
Constructor Details
#initialize(current_catalog:, data_definition:) ⇒ GenerationContext
Returns a new instance of GenerationContext.
9 10 11 12 |
# File 'lib/tdc/generators/generation_context.rb', line 9 def initialize(current_catalog:, data_definition:) @current_catalog = current_catalog @data_definition = data_definition end |
Instance Attribute Details
#current_catalog ⇒ Object (readonly)
Returns the value of attribute current_catalog.
7 8 9 |
# File 'lib/tdc/generators/generation_context.rb', line 7 def current_catalog @current_catalog end |
#data_definition ⇒ Object (readonly)
Returns the value of attribute data_definition.
7 8 9 |
# File 'lib/tdc/generators/generation_context.rb', line 7 def data_definition @data_definition end |