Class: SpotFlow::Zeebe::IoMapping
- Inherits:
-
Bpmn::Extension
- Object
- Bpmn::Extension
- SpotFlow::Zeebe::IoMapping
- Defined in:
- lib/spot_flow/bpmn/extensions.rb
Instance Attribute Summary collapse
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
-
#outputs ⇒ Object
readonly
Returns the value of attribute outputs.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IoMapping
constructor
A new instance of IoMapping.
Constructor Details
#initialize(attributes = {}) ⇒ IoMapping
Returns a new instance of IoMapping.
38 39 40 41 42 43 |
# File 'lib/spot_flow/bpmn/extensions.rb', line 38 def initialize(attributes = {}) super(attributes.except(:input, :output)) @inputs = Array.wrap(attributes[:input]).map { |atts| Parameter.new(atts) } if attributes[:input].present? @outputs = Array.wrap(attributes[:output]).map { |atts| Parameter.new(atts) } if attributes[:output].present? end |
Instance Attribute Details
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs.
36 37 38 |
# File 'lib/spot_flow/bpmn/extensions.rb', line 36 def inputs @inputs end |
#outputs ⇒ Object (readonly)
Returns the value of attribute outputs.
36 37 38 |
# File 'lib/spot_flow/bpmn/extensions.rb', line 36 def outputs @outputs end |