Class: SpotFlow::Zeebe::TaskHeaders
- Inherits:
-
Bpmn::Extension
- Object
- Bpmn::Extension
- SpotFlow::Zeebe::TaskHeaders
- Defined in:
- lib/spot_flow/bpmn/extensions.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ TaskHeaders
constructor
A new instance of TaskHeaders.
Constructor Details
#initialize(attributes = {}) ⇒ TaskHeaders
Returns a new instance of TaskHeaders.
65 66 67 68 69 70 |
# File 'lib/spot_flow/bpmn/extensions.rb', line 65 def initialize(attributes = {}) super(attributes.except(:header)) @headers = HashWithIndifferentAccess.new Array.wrap(attributes[:header]).each { |header| @headers[header[:key]] = header[:value] } end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
63 64 65 |
# File 'lib/spot_flow/bpmn/extensions.rb', line 63 def headers @headers end |