Class: ETL::Batch::Directive

Inherits:
Object
  • Object
show all
Defined in:
lib/etl/batch/directives.rb

Overview

Abstract base class for directives

Direct Known Subclasses

Run, UseTempTables

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Directive) initialize(batch)

Initialize the directive with the given batch object



9
10
11
# File 'lib/etl/batch/directives.rb', line 9

def initialize(batch)
  @batch = batch
end

Instance Attribute Details

- (Object) batch (readonly)

Method to access the batch object



6
7
8
# File 'lib/etl/batch/directives.rb', line 6

def batch
  @batch
end

Instance Method Details

- (Object) execute

Execute the directive



14
15
16
# File 'lib/etl/batch/directives.rb', line 14

def execute
  do_execute
end