Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/types/array.rb
Overview
Array is converted to/from an AMQP list, which is allowed to hold mixed-type elements. Use UniformArray to convert/from an AMQP array with uniform element type.
Direct Known Subclasses
Class Method Summary collapse
- .proton_get(data) ⇒ Object deprecated Deprecated.
Instance Method Summary collapse
-
#proton_array_header ⇒ Object
deprecated
Deprecated.
use UniformArray
-
#proton_array_header=(h) ⇒ Object
deprecated
Deprecated.
use UniformArray
-
#proton_described? ⇒ Boolean
deprecated
Deprecated.
use UniformArray
- #proton_put(data) ⇒ Object deprecated Deprecated.
Class Method Details
.proton_get(data) ⇒ Object
Deprecated.
110 111 112 113 |
# File 'lib/types/array.rb', line 110 def self.proton_get(data) Qpid::Proton::Util::Deprecation.deprecated __method__, "Codec::Data#list" data.list end |
Instance Method Details
#proton_array_header ⇒ Object
Deprecated.
use UniformArray
81 82 83 84 |
# File 'lib/types/array.rb', line 81 def proton_array_header Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header end |
#proton_array_header=(h) ⇒ Object
Deprecated.
use UniformArray
87 88 89 90 |
# File 'lib/types/array.rb', line 87 def proton_array_header=(h) Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header= h end |
#proton_described? ⇒ Boolean
Deprecated.
use UniformArray
93 94 95 96 |
# File 'lib/types/array.rb', line 93 def proton_described?() Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header && @proton_array_header.described? end |
#proton_put(data) ⇒ Object
Deprecated.
99 100 101 102 103 104 105 106 107 |
# File 'lib/types/array.rb', line 99 def proton_put(data) Qpid::Proton::Util::Deprecation.deprecated __method__, "Codec::Data#array=, Codec::Data#list=" raise TypeError, "nil data" unless data if @proton_array_header && @proton_array_header.type data.array = self else data.list = self end end |