Class Qpid::Proton::Types::UniformArray
In: lib/types/array.rb
Parent: ::Array

*Unsettled API* - An array that is converted to/from an AMQP array of uniform element type. A plain ruby +::Array+ is converted to/from an AMQP list, which can contain mixed type elements. If invalid elements are included, then {TypeError} will be raised when encoding to AMQP.

Methods

Attributes

descriptor  [R]  @return [Object] Optional descriptor.
type  [R]  @return [Type] Array elements must be convertible to this AMQP type

Public Class methods

Construct a uniform array, which will be converted to an AMQP array. A plain ruby +::Array+ is converted to/from an AMQP list, containing mixed type elements.

@param type [Type] Elements must be convertible to this AMQP type. @param elements [Enumerator] Initial elements for the array @param descriptor [Object] Optional array descriptor

Public Instance methods

@deprecated backwards compatibility {UniformArray}

[Validate]