Class: AMQ::Protocol::GetResponse
- Inherits:
-
Object
- Object
- AMQ::Protocol::GetResponse
- Defined in:
- lib/amq/protocol/get_response.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#cluster_id ⇒ Object
GetEmpty attributes.
-
#delivery_tag ⇒ Object
GetOk attributes.
- #empty? ⇒ Boolean
- #exchange ⇒ Object
-
#initialize(method) ⇒ GetResponse
constructor
A new instance of GetResponse.
- #message_count ⇒ Object
- #redelivered ⇒ Object
- #routing_key ⇒ Object
Constructor Details
#initialize(method) ⇒ GetResponse
Returns a new instance of GetResponse.
8 9 10 |
# File 'lib/amq/protocol/get_response.rb', line 8 def initialize(method) @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/amq/protocol/get_response.rb', line 7 def method @method end |
Instance Method Details
#cluster_id ⇒ Object
GetEmpty attributes
48 49 50 51 52 |
# File 'lib/amq/protocol/get_response.rb', line 48 def cluster_id if @method.respond_to?(:cluster_id) @method.cluster_id end end |
#delivery_tag ⇒ Object
GetOk attributes
17 18 19 20 21 |
# File 'lib/amq/protocol/get_response.rb', line 17 def delivery_tag if @method.respond_to?(:delivery_tag) @method.delivery_tag end end |
#empty? ⇒ Boolean
12 13 14 |
# File 'lib/amq/protocol/get_response.rb', line 12 def empty? @method.is_a?(::AMQ::Protocol::Basic::GetEmpty) end |
#exchange ⇒ Object
29 30 31 32 33 |
# File 'lib/amq/protocol/get_response.rb', line 29 def exchange if @method.respond_to?(:exchange) @method.exchange end end |
#message_count ⇒ Object
41 42 43 44 45 |
# File 'lib/amq/protocol/get_response.rb', line 41 def if @method.respond_to?(:message_count) @method. end end |
#redelivered ⇒ Object
23 24 25 26 27 |
# File 'lib/amq/protocol/get_response.rb', line 23 def redelivered if @method.respond_to?(:redelivered) @method.redelivered end end |
#routing_key ⇒ Object
35 36 37 38 39 |
# File 'lib/amq/protocol/get_response.rb', line 35 def routing_key if @method.respond_to?(:routing_key) @method.routing_key end end |