Class: Tdc::Generators::GeneratorBase

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

Overview

Abstract base class for all Test Data Catalog generators.

Direct Known Subclasses

StandardGenerator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(generation_context) ⇒ GeneratorBase

Returns a new instance of GeneratorBase.



12
13
14
# File 'lib/tdc/generators/generator_base.rb', line 12

def initialize(generation_context)
  @generation_context = generation_context
end

Instance Attribute Details

#generation_contextObject (readonly)

Returns the value of attribute generation_context.



7
8
9
# File 'lib/tdc/generators/generator_base.rb', line 7

def generation_context
  @generation_context
end

Instance Method Details

#generateObject



16
17
18
# File 'lib/tdc/generators/generator_base.rb', line 16

def generate
  raise Tdc::MissingOverrideError, "Implement the 'generate' method"
end

#instance_definitionsObject



20
21
22
# File 'lib/tdc/generators/generator_base.rb', line 20

def instance_definitions
  raise Tdc::MissingOverrideError, "Implement the 'instance_definitions' method"
end