class Qpid::Proton::ArrayHeader

Holds the information for an AMQP Array compound type.

It holds the type for the array and the descriptor if the array is described.

Attributes

descriptor[R]
type[R]

Public Class Methods

new(type, descriptor = nil) click to toggle source
# File lib/qpid_proton/array.rb, line 38
def initialize(type, descriptor = nil)
  @type = type
  @descriptor = descriptor
end

Public Instance Methods

==(that) click to toggle source
# File lib/qpid_proton/array.rb, line 48
def ==(that)
  ((@type == that.type) && (@descriptor == that.descriptor))
end
described?() click to toggle source

Returns true if the array is described.

# File lib/qpid_proton/array.rb, line 44
def described?
  !@descriptor.nil?
end