Class: Kanal::Core::Helpers::InputOutputPair
- Inherits:
-
Object
- Object
- Kanal::Core::Helpers::InputOutputPair
- 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
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(input, output) ⇒ InputOutputPair
constructor
A new instance of InputOutputPair.
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
#input ⇒ Object (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 |
#output ⇒ Object (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 |