Module: Rddd::Aggregates::Finders
- Included in:
- Root
- Defined in:
- lib/rddd/aggregates/finders.rb
Instance Method Summary collapse
Instance Method Details
#finder(name) ⇒ Object
4 5 6 7 8 |
# File 'lib/rddd/aggregates/finders.rb', line 4 def finder(name) craete_static_method(name) do |*args| repository.send(name, *args) end end |
#repository ⇒ Object
10 11 12 |
# File 'lib/rddd/aggregates/finders.rb', line 10 def repository Repositories::Factory.build(self) end |