Class: Zeebe::TaskHeaders

Inherits:
BPMN::Extension show all
Defined in:
lib/bpmn/extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject

Returns the value of attribute headers.



62
63
64
# File 'lib/bpmn/extensions.rb', line 62

def headers
  @headers
end