Class: Synapse::Domain::DomainEventMessageBuilder
Overview
Message builder capable of producing DomainEventMessage instances
Instance Attribute Summary collapse
#id, #metadata, #payload, #timestamp
Instance Method Summary
collapse
build, #populate_defaults
Instance Attribute Details
#aggregate_id ⇒ Object
14
15
16
|
# File 'lib/synapse/domain/message_builder.rb', line 14
def aggregate_id
@aggregate_id
end
|
#sequence_number ⇒ Integer
17
18
19
|
# File 'lib/synapse/domain/message_builder.rb', line 17
def sequence_number
@sequence_number
end
|
Instance Method Details
20
21
22
|
# File 'lib/synapse/domain/message_builder.rb', line 20
def build
DomainEventMessage.new @id, @metadata, @payload, @timestamp, @aggregate_id, @sequence_number
end
|