Class: Sequent::Core::AggregateRoots

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/core/aggregate_roots.rb

Overview

Utility class containing all subclasses of AggregateRoot

Class Method Summary collapse

Class Method Details

.<<(aggregate_root) ⇒ Object



18
19
20
# File 'lib/sequent/core/aggregate_roots.rb', line 18

def <<(aggregate_root)
  aggregate_roots << aggregate_root
end

.aggregate_rootsObject



10
11
12
# File 'lib/sequent/core/aggregate_roots.rb', line 10

def aggregate_roots
  @aggregate_roots ||= []
end

.allObject



14
15
16
# File 'lib/sequent/core/aggregate_roots.rb', line 14

def all
  aggregate_roots
end