Class: Qpid::Proton::Types::ArrayHeader
- Inherits:
-
Object
- Object
- Qpid::Proton::Types::ArrayHeader
- Defined in:
- lib/types/array.rb
Overview
Holds the information for an AMQP Array compound type.
It holds the type for the array and the descriptor if the array is described.
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
readonly
Returns the value of attribute descriptor.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #==(that) ⇒ Object
-
#described? ⇒ Boolean
Returns true if the array is described.
-
#initialize(type, descriptor = nil) ⇒ ArrayHeader
constructor
A new instance of ArrayHeader.
Constructor Details
#initialize(type, descriptor = nil) ⇒ ArrayHeader
Returns a new instance of ArrayHeader.
38 39 40 41 |
# File 'lib/types/array.rb', line 38 def initialize(type, descriptor = nil) @type = type @descriptor = descriptor end |
Instance Attribute Details
#descriptor ⇒ Object (readonly)
Returns the value of attribute descriptor.
36 37 38 |
# File 'lib/types/array.rb', line 36 def descriptor @descriptor end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
35 36 37 |
# File 'lib/types/array.rb', line 35 def type @type end |
Instance Method Details
#==(that) ⇒ Object
48 49 50 |
# File 'lib/types/array.rb', line 48 def ==(that) ((@type == that.type) && (@descriptor == that.descriptor)) end |
#described? ⇒ Boolean
Returns true if the array is described.
44 45 46 |
# File 'lib/types/array.rb', line 44 def described? !@descriptor.nil? end |