Class: ActiveMessaging::Adapters::Message
- Inherits:
-
BaseMessage
- Object
- BaseMessage
- ActiveMessaging::Adapters::Message
- Defined in:
- lib/activemessaging/adapters/reliable_msg.rb
Instance Attribute Summary collapse
-
#transaction ⇒ Object
Returns the value of attribute transaction.
Attributes inherited from BaseMessage
#body, #destination, #headers, #id
Instance Method Summary collapse
-
#initialize(body, id, headers, destination, transaction = nil) ⇒ Message
constructor
A new instance of Message.
Methods inherited from BaseMessage
#dup, #matches_subscription?, #to_s
Constructor Details
#initialize(body, id, headers, destination, transaction = nil) ⇒ Message
Returns a new instance of Message.
178 179 180 181 |
# File 'lib/activemessaging/adapters/reliable_msg.rb', line 178 def initialize body, id, headers, destination, transaction=nil super(body, id, headers, destination) @transaction = transaction end |
Instance Attribute Details
#transaction ⇒ Object
Returns the value of attribute transaction.
176 177 178 |
# File 'lib/activemessaging/adapters/reliable_msg.rb', line 176 def transaction @transaction end |