Module: StateBoss::EventHistory
- Included in:
- StateBoss
- Defined in:
- lib/state_boss/event_history.rb
Instance Method Summary collapse
Instance Method Details
#event_history ⇒ Object
3 4 5 |
# File 'lib/state_boss/event_history.rb', line 3 def event_history _event_history end |
#record_event(before_state, event) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/state_boss/event_history.rb', line 7 def record_event(before_state, event) @_event_history = (_event_history || []) << { before_state: before_state, event: event, } end |