Class: Floe::Workflow::PayloadTemplate
- Inherits:
-
Object
- Object
- Floe::Workflow::PayloadTemplate
- Defined in:
- lib/floe/workflow/payload_template.rb
Instance Method Summary collapse
-
#initialize(payload) ⇒ PayloadTemplate
constructor
A new instance of PayloadTemplate.
- #value(context, inputs = {}) ⇒ Object
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 |