Class: Smith::Workflow::FailureRecordRestore
- Inherits:
-
Object
- Object
- Smith::Workflow::FailureRecordRestore
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/workflow/failure_record_restore.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/smith/workflow/failure_record_restore.rb', line 33 def call return if raw.nil? reject!("persisted workflow failure record must be a Hash") unless MODULE_MATCH.bind_call(Hash, raw) values = attributes FailureRecordValidator.new(restored_record(values)).call end |