Class: Tdc::Generators::GenerationContext

Inherits:
Object
  • Object
show all
Defined in:
lib/tdc/generators/generation_context.rb

Overview

Knows all the parameters that define the context for generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_catalogObject (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_definitionObject (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