Class: Synapse::Domain::EventMessageBuilder

Inherits:
MessageBuilder show all
Defined in:
lib/synapse/domain/message_builder.rb

Overview

Message builder capable of producing EventMessage instances

Direct Known Subclasses

DomainEventMessageBuilder

Instance Attribute Summary

Attributes inherited from MessageBuilder

#id, #metadata, #payload, #timestamp

Instance Method Summary collapse

Methods inherited from MessageBuilder

build, #populate_defaults

Instance Method Details

#buildEventMessage

Returns:



6
7
8
# File 'lib/synapse/domain/message_builder.rb', line 6

def build
  EventMessage.new @id, @metadata, @payload, @timestamp
end