Class: Kanal::Core::Helpers::InputOutputPair

Inherits:
Object
  • Object
show all
Defined in:
lib/kanal/core/helpers/input_output_pair.rb

Overview

Objects of this class are constructed by router to be put into #router.input_output_pair_queue It is needed so we don’t keep input directly in output as a parameter Upon queueing these objects processed in item_added hook, for which input might be needed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input, output) ⇒ InputOutputPair

Returns a new instance of InputOutputPair.



14
15
16
17
# File 'lib/kanal/core/helpers/input_output_pair.rb', line 14

def initialize(input, output)
  @input = input
  @output = output
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



12
13
14
# File 'lib/kanal/core/helpers/input_output_pair.rb', line 12

def input
  @input
end

#outputObject (readonly)

Returns the value of attribute output.



12
13
14
# File 'lib/kanal/core/helpers/input_output_pair.rb', line 12

def output
  @output
end