Class: Dopv::StateStoreObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/dopv/state_store.rb

Instance Method Summary collapse

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