Class: ManageIQ::Floe::Workflow::PayloadTemplate

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

Instance Method Summary collapse

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