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.
111 112 113 114 |
# File 'lib/types/array.rb', line 111 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
82 83 84 85 |
# File 'lib/types/array.rb', line 82 def proton_array_header Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header end |
#proton_array_header=(h) ⇒ Object
Deprecated.
use UniformArray
88 89 90 91 |
# File 'lib/types/array.rb', line 88 def proton_array_header=(h) Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header= h end |
#proton_described? ⇒ Boolean
Deprecated.
use UniformArray
94 95 96 97 |
# File 'lib/types/array.rb', line 94 def proton_described?() Qpid::Proton::Util::Deprecation.deprecated __method__, UniformArray @proton_array_header && @proton_array_header.described? end |
#proton_put(data) ⇒ Object
Deprecated.
100 101 102 103 104 105 106 107 108 |
# File 'lib/types/array.rb', line 100 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 |