Class: Smith::Workflow::FailureReconstructor

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/failure_reconstructor.rb

Instance Method Summary collapse

Instance Method Details

#callObject



38
39
40
41
42
43
44
45
# File 'lib/smith/workflow/failure_reconstructor.rb', line 38

def call
  {
    transition: transition_normalizer.call(snapshot[:transition]),
    from: state_normalizer.call(snapshot[:from]),
    to: state_normalizer.call(snapshot[:to]),
    error: reconstruct_error
  }
end