Module: Itiel::Load::ChainedStep::InstanceMethods
- Defined in:
- lib/itiel/load/chained_step.rb,
lib/itiel/load/input_output_behavior.rb
Instance Attribute Summary collapse
-
#next_step ⇒ Object
Returns the value of attribute next_step.
Instance Method Summary collapse
- #input=(input_stream) ⇒ Object
-
#persist(input_stream) ⇒ Object
This method has to be implemented in the class.
Instance Attribute Details
#next_step ⇒ Object
Returns the value of attribute next_step.
13 14 15 |
# File 'lib/itiel/load/chained_step.rb', line 13 def next_step @next_step end |
Instance Method Details
#input=(input_stream) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/itiel/load/chained_step.rb', line 17 def input=(input_stream) Itiel::Logger.log_received(self, input_stream.size) persist(input_stream) self.next_step.input = input_stream if next_step Itiel::Logger.log_processed(self, input_stream.size) end |
#persist(input_stream) ⇒ Object
This method has to be implemented in the class
27 28 29 |
# File 'lib/itiel/load/chained_step.rb', line 27 def persist(input_stream) raise Itiel::MethodNotImplementedException.new "persist is not implemented" end |