Class: HttpEventStore::Actions::SetProjectionState

Inherits:
Object
  • Object
show all
Defined in:
lib/http_event_store/actions/set_projection_state.rb

Instance Method Summary collapse

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