Module: Itiel::Extract::ChainedStep

Included in:
CSVFile, CustomSQL
Defined in:
lib/itiel/extract/chained_step.rb

Overview

Defines how the initial extractors behave

All classes including this module must define the in_batches method

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#next_stepObject

Returns the value of attribute next_step.



9
10
11
# File 'lib/itiel/extract/chained_step.rb', line 9

def next_step
  @next_step
end

Instance Method Details

#extractObject



17
18
19
# File 'lib/itiel/extract/chained_step.rb', line 17

def extract
  raise Itiel::MethodNotImplementedException.new "extract is not implemented"
end

#startObject



13
14
15
# File 'lib/itiel/extract/chained_step.rb', line 13

def start
  self.next_step.input = extract
end