Class: AMQ::Protocol::Channel::OpenOk
- Defined in:
- lib/amq/protocol/client.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_id) ⇒ OpenOk
constructor
A new instance of OpenOk.
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Constructor Details
#initialize(channel_id) ⇒ OpenOk
Returns a new instance of OpenOk.
626 627 628 |
# File 'lib/amq/protocol/client.rb', line 626 def initialize(channel_id) @channel_id = channel_id end |
Instance Attribute Details
#channel_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
625 626 627 |
# File 'lib/amq/protocol/client.rb', line 625 def channel_id @channel_id end |
Class Method Details
.decode(data) ⇒ Object
616 617 618 619 620 621 622 623 |
# File 'lib/amq/protocol/client.rb', line 616 def self.decode(data) offset = 0 length = data[offset, 4].unpack(PACK_UINT32).first offset += 4 channel_id = data[offset, length] offset += length self.new(channel_id) end |
.has_content? ⇒ Boolean
630 631 632 |
# File 'lib/amq/protocol/client.rb', line 630 def self.has_content? false end |