Class: Dopv::StateStoreObserver
- Inherits:
-
Object
- Object
- Dopv::StateStoreObserver
- Defined in:
- lib/dopv/state_store.rb
Instance Method Summary collapse
-
#initialize(plan, state_store) ⇒ StateStoreObserver
constructor
A new instance of StateStoreObserver.
- #update(notify_only = false) ⇒ Object
Constructor Details
#initialize(plan, state_store) ⇒ StateStoreObserver
Returns a new instance of StateStoreObserver.
77 78 79 80 |
# File 'lib/dopv/state_store.rb', line 77 def initialize(plan, state_store) @plan = plan @state_store = state_store end |
Instance Method Details
#update(notify_only = false) ⇒ Object
82 83 84 |
# File 'lib/dopv/state_store.rb', line 82 def update(notify_only = false) @state_store.persist_state(@plan) end |