Class: Floe::Workflow::PayloadTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/floe/workflow/payload_template.rb

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ PayloadTemplate

Returns a new instance of PayloadTemplate.



6
7
8
# File 'lib/floe/workflow/payload_template.rb', line 6

def initialize(payload)
  @payload_template = parse_payload(payload)
end

Instance Method Details

#value(context, inputs = {}) ⇒ Object



10
11
12
# File 'lib/floe/workflow/payload_template.rb', line 10

def value(context, inputs = {})
  interpolate_value(payload_template, context, inputs)
end