module Clamour::Message

What is sent over the wire.

Public Instance Methods

publish(configuration = Clamour.configuration) click to toggle source
# File lib/clamour/message.rb, line 39
def publish(configuration = Clamour.configuration)
  bus = Clamour::Bus.new(configuration)
  sent_message = Clamour::Message::Sent.new(payload: self)
  bus.publish(sent_message)
end