class States::Dsl::Catch

Attributes

context[R]

Public Class Methods

new(context, options={}) click to toggle source
# File lib/states/dsl/catch.rb, line 8
def initialize(context, options={})
  @context = context
  @error_equals = ensure_errors_array(options[:error_equals])
end

Public Instance Methods

next_state(state) click to toggle source
# File lib/states/dsl/catch.rb, line 17
def next_state(state)
  @next_state = context.naming.ref(state)
end
result_path(path) click to toggle source
# File lib/states/dsl/catch.rb, line 13
def result_path(path)
  @result_path = path
end
serializable_hash() click to toggle source
# File lib/states/dsl/catch.rb, line 21
def serializable_hash
  {
    "ErrorEquals" => @error_equals,
    "ResultPath" => @result_path,
    "Next" => @next_state,
  }
end