class Aggregates::DomainMessage

The DomainMessage is not a class that should generally be interacted with unless extending Aggregates itself. It provides some core functionality that message types (Event and Command) both require.

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method
# File lib/aggregates/domain_message.rb, line 8
def initialize(attributes = {})
  super(attributes.merge({ message_id: Aggregates.new_message_id, created_at: Time.now }))
end