class AMQ::Protocol::Channel::OpenOk

Attributes

channel_id[R]

Public Class Methods

decode(data) click to toggle source

@return

# File lib/amq/protocol/client.rb, line 689
def self.decode(data)
  offset = offset = 0 # self-assigning offset to eliminate "assigned but unused variable" warning even if offset is not used in this method
  length = data[offset, 4].unpack(PACK_UINT32).first
  offset += 4
  channel_id = data[offset, length]
  offset += length
  self.new(channel_id)
end
has_content?() click to toggle source
# File lib/amq/protocol/client.rb, line 703
def self.has_content?
  false
end
new(channel_id) click to toggle source
# File lib/amq/protocol/client.rb, line 699
def initialize(channel_id)
  @channel_id = channel_id
end