Module: Itiel::Lookup::ChainedStep::InstanceMethods

Defined in:
lib/itiel/lookup/chained_step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#next_stepObject

Returns the value of attribute next_step.



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

def next_step
  @next_step
end

#outputObject

Returns the value of attribute output.



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

def output
  @output
end

Instance Method Details

#input=(input_stream) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/itiel/lookup/chained_step.rb', line 16

def input=(input_stream)
  Itiel::Logger.log_received(self, input_stream.size)
  self.output = lookup!(input_stream)
  #puts output if table_name == "profiles"
  #puts input_stream if table_name == "profiles"
  self.next_step.input = output if next_step
  Itiel::Logger.log_processed(self, input_stream.size)
end

#lookup!(input_stream) ⇒ Object



25
26
27
# File 'lib/itiel/lookup/chained_step.rb', line 25

def lookup!(input_stream)
  raise "lookup is not implemented"
end