Class: HttpEventStore::Actions::SetProjectionState
- Inherits:
-
Object
- Object
- HttpEventStore::Actions::SetProjectionState
- Defined in:
- lib/http_event_store/actions/set_projection_state.rb
Instance Method Summary collapse
- #call(projection_name, state) ⇒ Object
-
#initialize(client) ⇒ SetProjectionState
constructor
A new instance of SetProjectionState.
Constructor Details
#initialize(client) ⇒ SetProjectionState
Returns a new instance of SetProjectionState.
5 6 7 |
# File 'lib/http_event_store/actions/set_projection_state.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#call(projection_name, state) ⇒ Object
9 10 11 12 13 |
# File 'lib/http_event_store/actions/set_projection_state.rb', line 9 def call(projection_name, state) response = set_projection_state(projection_name, state) rescue ClientError => e end |