Class: Lieutenant::AggregateRepository
- Inherits:
-
Object
- Object
- Lieutenant::AggregateRepository
- 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
-
#initialize(store) ⇒ AggregateRepository
constructor
A new instance of AggregateRepository.
- #unit_of_work ⇒ Object
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_work ⇒ Object
10 11 12 |
# File 'lib/lieutenant/aggregate_repository.rb', line 10 def unit_of_work AggregateRepositoryUnit.new(store) end |