class Array

Attributes

proton_array_header[RW]

Used to declare an array as an AMQP array.

The value, if defined, is an instance of Qpid::Proton::ArrayHeader

Public Instance Methods

proton_described?() click to toggle source

Returns true if the array is the a Proton described type.

# File lib/qpid_proton/array.rb, line 65
def proton_described?
  !@proton_array_header.nil? && @proton_array_header.described?
end
proton_put(data) click to toggle source

Puts the elements of the array into the specified Qpid::Proton::Data object.

# File lib/qpid_proton/array.rb, line 70
def proton_put(data)
  raise TypeError, "data object cannot be nil" if data.nil?

  if @proton_array_header.nil?
    proton_put_list(data)
  else
    proton_put_array(data)
  end
end