Class: Synapse::Domain::EventMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/synapse/domain/message.rb

Overview

Represents the occurance of an event in the application that may be of some importance to another component of the application. It contains the relevant data for other components to act upon.

Direct Known Subclasses

DomainEventMessage

Instance Attribute Summary

Attributes inherited from Message

#id, #metadata, #payload, #timestamp

Class Method Summary collapse

Methods inherited from Message

#and_metadata, as_message, build, #initialize, #payload_type, #with_metadata

Constructor Details

This class inherits a constructor from Synapse::Message

Class Method Details

.builderClass

Returns:

  • (Class)


8
9
10
# File 'lib/synapse/domain/message.rb', line 8

def self.builder
  EventMessageBuilder
end