class AMQ::Protocol::Basic::GetEmpty

Attributes

cluster_id[R]

Public Class Methods

decode(data) click to toggle source

@return

# File lib/amq/protocol/client.rb, line 1984
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, 1].unpack(PACK_CHAR).first
  offset += 1
  cluster_id = data[offset, length]
  offset += length
  self.new(cluster_id)
end
has_content?() click to toggle source
# File lib/amq/protocol/client.rb, line 1998
def self.has_content?
  false
end
new(cluster_id) click to toggle source
# File lib/amq/protocol/client.rb, line 1994
def initialize(cluster_id)
  @cluster_id = cluster_id
end