Class: Lieutenant::AggregateRepository

Inherits:
Object
  • Object
show all
Defined in:
lib/lieutenant/aggregate_repository.rb

Overview

Manages the repository logic to persist and retrieve aggregates

Defined Under Namespace

Classes: AggregateRepositoryUnit

Instance Method Summary collapse

Constructor Details

#initialize(store) ⇒ AggregateRepository

Returns a new instance of AggregateRepository.



6
7
8
# File 'lib/lieutenant/aggregate_repository.rb', line 6

def initialize(store)
  @store = store
end

Instance Method Details

#unit_of_workObject



10
11
12
# File 'lib/lieutenant/aggregate_repository.rb', line 10

def unit_of_work
  AggregateRepositoryUnit.new(store)
end