Class: RailsEventStore::Actions::ReadAllStreams

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_event_store/actions/read_all_streams.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository) ⇒ ReadAllStreams

Returns a new instance of ReadAllStreams.



5
6
7
# File 'lib/rails_event_store/actions/read_all_streams.rb', line 5

def initialize(repository)
  @repository = repository
end

Instance Method Details

#callObject



9
10
11
# File 'lib/rails_event_store/actions/read_all_streams.rb', line 9

def call
  get_all_events.group_by { |event| event.stream }
end