Class: AMQ::Protocol::Basic::CancelOk
- Defined in:
- lib/amq/protocol/client.rb
Instance Attribute Summary collapse
-
#consumer_tag ⇒ Object
readonly
Returns the value of attribute consumer_tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(consumer_tag) ⇒ CancelOk
constructor
A new instance of CancelOk.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(consumer_tag) ⇒ CancelOk
Returns a new instance of CancelOk.
1743 1744 1745 |
# File 'lib/amq/protocol/client.rb', line 1743 def initialize(consumer_tag) @consumer_tag = consumer_tag end |
Instance Attribute Details
#consumer_tag ⇒ Object (readonly)
Returns the value of attribute consumer_tag.
1742 1743 1744 |
# File 'lib/amq/protocol/client.rb', line 1742 def consumer_tag @consumer_tag end |
Class Method Details
.decode(data) ⇒ Object
1733 1734 1735 1736 1737 1738 1739 1740 |
# File 'lib/amq/protocol/client.rb', line 1733 def self.decode(data) offset = 0 length = data[offset, 1].unpack(PACK_CHAR).first offset += 1 consumer_tag = data[offset, length] offset += length self.new(consumer_tag) end |
.has_content? ⇒ Boolean
1747 1748 1749 |
# File 'lib/amq/protocol/client.rb', line 1747 def self.has_content? false end |