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 615
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?() click to toggle source
# File lib/amq/protocol/client.rb, line 629
def self.has_content?
  false
end
new(channel_id) click to toggle source
# File lib/amq/protocol/client.rb, line 625
def initialize(channel_id)
  @channel_id = channel_id
end