Class: Rack::AMQP::Client::Response
- Inherits:
-
Object
- Object
- Rack::AMQP::Client::Response
- Defined in:
- lib/rack/amqp/client/response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#delivery_info ⇒ Object
Returns the value of attribute delivery_info.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(meta, payload, delivery_info) ⇒ Response
constructor
A new instance of Response.
- #response_code ⇒ Object
Constructor Details
#initialize(meta, payload, delivery_info) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 |
# File 'lib/rack/amqp/client/response.rb', line 7 def initialize(, payload, delivery_info) @meta = @payload = payload @delivery_info = delivery_info end |
Instance Attribute Details
#delivery_info ⇒ Object
Returns the value of attribute delivery_info.
6 7 8 |
# File 'lib/rack/amqp/client/response.rb', line 6 def delivery_info @delivery_info end |
#meta ⇒ Object
Returns the value of attribute meta.
6 7 8 |
# File 'lib/rack/amqp/client/response.rb', line 6 def @meta end |
#payload ⇒ Object
Returns the value of attribute payload.
6 7 8 |
# File 'lib/rack/amqp/client/response.rb', line 6 def payload @payload end |
Instance Method Details
#headers ⇒ Object
13 14 15 |
# File 'lib/rack/amqp/client/response.rb', line 13 def headers [:headers] end |
#response_code ⇒ Object
17 18 19 |
# File 'lib/rack/amqp/client/response.rb', line 17 def response_code headers['X-AMQP-HTTP-Status'] end |