Class: AMQP::Client::ReturnMessage
- Inherits:
-
Object
- Object
- AMQP::Client::ReturnMessage
- Defined in:
- lib/amqp/client/message.rb
Overview
A published message returned by the broker due to some error
Instance Attribute Summary collapse
-
#body ⇒ String
The message body.
-
#exchange ⇒ String
readonly
Name of the exchange the message was published to.
-
#properties ⇒ Properties
Message properties.
-
#reply_code ⇒ Integer
readonly
Error code.
-
#reply_text ⇒ String
readonly
Description on why the message was returned.
-
#routing_key ⇒ String
readonly
The routing key the message was published with.
Instance Attribute Details
#body ⇒ String
The message body
108 109 110 |
# File 'lib/amqp/client/message.rb', line 108 def body @body end |
#exchange ⇒ String (readonly)
Name of the exchange the message was published to
96 97 98 |
# File 'lib/amqp/client/message.rb', line 96 def exchange @exchange end |
#properties ⇒ Properties
Message properties
104 105 106 |
# File 'lib/amqp/client/message.rb', line 104 def properties @properties end |
#reply_code ⇒ Integer (readonly)
Error code
88 89 90 |
# File 'lib/amqp/client/message.rb', line 88 def reply_code @reply_code end |
#reply_text ⇒ String (readonly)
Description on why the message was returned
92 93 94 |
# File 'lib/amqp/client/message.rb', line 92 def reply_text @reply_text end |
#routing_key ⇒ String (readonly)
The routing key the message was published with
100 101 102 |
# File 'lib/amqp/client/message.rb', line 100 def routing_key @routing_key end |