Class: ActiveMessaging::Adapters::Message

Inherits:
BaseMessage
  • Object
show all
Defined in:
lib/activemessaging/adapters/reliable_msg.rb

Instance Attribute Summary collapse

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, 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

#transactionObject

Returns the value of attribute transaction.



176
177
178
# File 'lib/activemessaging/adapters/reliable_msg.rb', line 176

def transaction
  @transaction
end