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.



53
54
55
56
# File 'lib/activemessaging/test_helper.rb', line 53

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