Class: SpotFlow::Zeebe::TaskHeaders

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end