Class: ManageIQ::Floe::Workflow::PayloadTemplate
- Inherits:
-
Object
- Object
- ManageIQ::Floe::Workflow::PayloadTemplate
- Defined in:
- lib/manageiq/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.
7 8 9 |
# File 'lib/manageiq/floe/workflow/payload_template.rb', line 7 def initialize(payload) @payload = payload end |
Instance Method Details
#value(context, inputs = {}) ⇒ Object
11 12 13 |
# File 'lib/manageiq/floe/workflow/payload_template.rb', line 11 def value(context, inputs = {}) interpolate_value_nested(payload, context, inputs) end |