Module: Aggregates
- Defined in:
- lib/aggregates.rb,
lib/aggregates/event.rb,
lib/aggregates/types.rb,
lib/aggregates/auditor.rb,
lib/aggregates/command.rb,
lib/aggregates/identity.rb,
lib/aggregates/event_stream.rb,
lib/aggregates/configuration.rb,
lib/aggregates/aggregate_root.rb,
lib/aggregates/command_filter.rb,
lib/aggregates/domain_message.rb,
lib/aggregates/event_processor.rb,
lib/aggregates/storage_backend.rb,
lib/aggregates/command_processor.rb,
lib/aggregates/message_processor.rb,
lib/aggregates/command_dispatcher.rb,
lib/aggregates/with_aggregate_helpers.rb,
lib/aggregates/command_validation_error.rb,
lib/aggregates/in_memory_storage_backend.rb,
lib/aggregates/dynamoid/dynamoid_storage_backend.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Modules: Identity, MessageProcessor, Types, WithAggregateHelpers
Classes: AggregateRoot, Auditor, Command, CommandDispatcher, CommandFilter, CommandProcessor, CommandValidationError, Configuration, DomainMessage, Event, EventProcessor, EventStream, InMemoryStorageBackend, StorageBackend
Class Method Summary
collapse
Class Method Details
.audit(type, aggregate_id) ⇒ Object
30
31
32
|
# File 'lib/aggregates.rb', line 30
def self.audit(type, aggregate_id)
Auditor.new type, aggregate_id
end
|
10
11
12
|
# File 'lib/aggregates.rb', line 10
def self.configure
yield Configuration.instance
end
|
.execute_command(command) ⇒ Object
22
23
24
|
# File 'lib/aggregates.rb', line 22
def self.execute_command(command)
CommandDispatcher.instance.execute_command command
end
|
.execute_commands(*commands) ⇒ Object
26
27
28
|
# File 'lib/aggregates.rb', line 26
def self.execute_commands(*commands)
CommandDispatcher.instance.execute_commands(*commands)
end
|
.new_aggregate_id ⇒ Object
14
15
16
|
# File 'lib/aggregates.rb', line 14
def self.new_aggregate_id
SecureRandom.uuid.to_s
end
|
.new_message_id ⇒ Object
18
19
20
|
# File 'lib/aggregates.rb', line 18
def self.new_message_id
SecureRandom.uuid.to_s
end
|