Class: ManageIQ::Floe::Workflow::Catcher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Catcher

Returns a new instance of Catcher.



9
10
11
12
13
14
15
# File 'lib/manageiq/floe/workflow/catcher.rb', line 9

def initialize(payload)
  @payload = payload

  @error_equals = payload["ErrorEquals"]
  @next         = payload["Next"]
  @result_path  = payload.fetch("ResultPath", "$")
end

Instance Attribute Details

#error_equalsObject (readonly)

Returns the value of attribute error_equals.



7
8
9
# File 'lib/manageiq/floe/workflow/catcher.rb', line 7

def error_equals
  @error_equals
end

#nextObject (readonly)

Returns the value of attribute next.



7
8
9
# File 'lib/manageiq/floe/workflow/catcher.rb', line 7

def next
  @next
end

#result_pathObject (readonly)

Returns the value of attribute result_path.



7
8
9
# File 'lib/manageiq/floe/workflow/catcher.rb', line 7

def result_path
  @result_path
end