Class: Aggregates::DomainMessage
- Inherits:
-
DomainObject
- Object
- DomainObject
- Aggregates::DomainMessage
- Defined in:
- lib/aggregates/domain_message.rb
Overview
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.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DomainMessage
constructor
A new instance of DomainMessage.
Methods inherited from DomainObject
Constructor Details
#initialize(attributes = {}) ⇒ DomainMessage
Returns a new instance of DomainMessage.
8 9 10 |
# File 'lib/aggregates/domain_message.rb', line 8 def initialize(attributes = {}) super(attributes.merge({ message_id: Aggregates., created_at: Time.now })) end |