Class: Novel::StateMachines::SagaStatus
- Inherits:
-
Object
- Object
- Novel::StateMachines::SagaStatus
- Defined in:
- lib/novel/state_machines/saga_status.rb
Class Method Summary collapse
Class Method Details
.build(state: nil) ⇒ Object
27 28 29 30 31 |
# File 'lib/novel/state_machines/saga_status.rb', line 27 def self.build(state: nil) sm = self.new sm.state = state.to_s if state sm end |