Class: Zeebe::TaskHeaders
- Inherits:
-
BPMN::Extension
- Object
- BPMN::Extension
- Zeebe::TaskHeaders
- Defined in:
- lib/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.
64 65 66 67 68 69 |
# File 'lib/bpmn/extensions.rb', line 64 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.
62 63 64 |
# File 'lib/bpmn/extensions.rb', line 62 def headers @headers end |