Class: ActiveMessaging::TestMessage

Inherits:
BaseMessage show all
Defined in:
lib/activemessaging/test_helper.rb

Instance Attribute Summary

Attributes inherited from BaseMessage

#body, #destination, #headers, #id

Instance Method Summary collapse

Methods inherited from BaseMessage

#dup, #matches_subscription?, #to_s

Constructor Details

#initialize(body = "", headers = {}, destination = "") ⇒ TestMessage

Returns a new instance of TestMessage.



46
47
48
49
# File 'lib/activemessaging/test_helper.rb', line 46

def initialize(body="", headers={}, destination="")
  super(body, nil, headers, destination)
  @headers['destination'] = destination
end