module Aggregates
A helpful library for building CQRS and Event
Sourced Applications.
Public Class Methods
create_domain(&block)
click to toggle source
# File lib/aggregates.rb, line 35 def self.create_domain(&block) domain = Domain.new domain.instance_exec(&block) domain end
new_aggregate_id()
click to toggle source
# File lib/aggregates.rb, line 27 def self.new_aggregate_id new_uuid end
new_message_id()
click to toggle source
# File lib/aggregates.rb, line 31 def self.new_message_id new_uuid end
new_uuid()
click to toggle source
# File lib/aggregates.rb, line 41 def self.new_uuid SecureRandom.uuid.to_s end