Class: AMQP::Client::ReturnMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/amqp/client/message.rb

Overview

A published message returned by the broker due to some error

Instance Attribute Summary collapse

Instance Attribute Details

#bodyString

The message body

Returns:

  • (String)


117
118
119
# File 'lib/amqp/client/message.rb', line 117

def body
  @body
end

#exchangeString (readonly)

Name of the exchange the message was published to

Returns:

  • (String)


105
106
107
# File 'lib/amqp/client/message.rb', line 105

def exchange
  @exchange
end

#propertiesProperties

Message properties

Returns:



113
114
115
# File 'lib/amqp/client/message.rb', line 113

def properties
  @properties
end

#reply_codeInteger (readonly)

Error code

Returns:

  • (Integer)


97
98
99
# File 'lib/amqp/client/message.rb', line 97

def reply_code
  @reply_code
end

#reply_textString (readonly)

Description on why the message was returned

Returns:

  • (String)


101
102
103
# File 'lib/amqp/client/message.rb', line 101

def reply_text
  @reply_text
end

#routing_keyString (readonly)

The routing key the message was published with

Returns:

  • (String)


109
110
111
# File 'lib/amqp/client/message.rb', line 109

def routing_key
  @routing_key
end