Class: AMQ::Protocol::Basic::ConsumeOk
- 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
-
.decode(data) ⇒ Object
Optimized decode using getbyte.
- .has_content? ⇒ Boolean
Instance Method Summary collapse
-
#initialize(consumer_tag) ⇒ ConsumeOk
constructor
A new instance of ConsumeOk.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(consumer_tag) ⇒ ConsumeOk
Returns a new instance of ConsumeOk.
1699 1700 1701 |
# File 'lib/amq/protocol/client.rb', line 1699 def initialize(consumer_tag) @consumer_tag = consumer_tag end |
Instance Attribute Details
#consumer_tag ⇒ Object (readonly)
Returns the value of attribute consumer_tag.
1698 1699 1700 |
# File 'lib/amq/protocol/client.rb', line 1698 def consumer_tag @consumer_tag end |
Class Method Details
.decode(data) ⇒ Object
Optimized decode using getbyte
1692 1693 1694 1695 1696 |
# File 'lib/amq/protocol/client.rb', line 1692 def self.decode(data) length = data.getbyte(0) consumer_tag = data.byteslice(1, length) self.new(consumer_tag) end |
.has_content? ⇒ Boolean
1703 1704 1705 |
# File 'lib/amq/protocol/client.rb', line 1703 def self.has_content? false end |