Class: Synapse::Command::CommandMessageBuilder

Inherits:
MessageBuilder show all
Defined in:
lib/synapse/command/message.rb

Overview

Message builder capable of producing CommandMessage instances

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

#buildCommandMessage

Returns:



14
15
16
# File 'lib/synapse/command/message.rb', line 14

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