Class: Qpid::Proton::Disposition
- Inherits:
-
Object
- Object
- Qpid::Proton::Disposition
- Includes:
- State
- Defined in:
- lib/core/disposition.rb
Defined Under Namespace
Modules: State
Constant Summary
Constants included from State
State::ACCEPTED, State::MODIFIED, State::RECEIVED, State::REJECTED, State::RELEASED
Instance Attribute Summary collapse
- #impl readonly
Instance Method Summary collapse
-
#annotations ⇒ Codec::Data
Returns the annotations for the disposition.
-
#annotations=(annotations)
Sets the annotations for the disposition.
-
#condition ⇒ Codec::Data
Returns the condition of the disposition.
- #condition=(condition)
-
#data ⇒ Codec::Data
Returns the data for the disposition.
-
#data=(data)
Sets the data for the disposition.
Methods included from State::ClassMethods
Instance Attribute Details
#impl (readonly)
55 56 57 |
# File 'lib/core/disposition.rb', line 55 def impl @impl end |
Instance Method Details
#annotations ⇒ Codec::Data
Returns the annotations for the disposition.
129 130 131 132 133 134 135 |
# File 'lib/core/disposition.rb', line 129 def annotations if @local @annotations else Codec::Data.to_object(Cproton.pn_disposition_annotations(@impl)) end end |
#annotations=(annotations)
Sets the annotations for the disposition.
120 121 122 123 |
# File 'lib/core/disposition.rb', line 120 def annotations=(annotations) raise AttributeError.new("annotations attribute is read-only") unless @local @annotations = annotations end |
#condition ⇒ Codec::Data
Returns the condition of the disposition.
152 153 154 155 156 157 158 |
# File 'lib/core/disposition.rb', line 152 def condition if @local @condition else Condition.convert(Cproton.pn_disposition_condition(@impl)) end end |
#condition=(condition)
143 144 145 146 |
# File 'lib/core/disposition.rb', line 143 def condition=(condition) raise AttributeError.new("condition attribute is read-only") unless @local @condition = condition end |
#data ⇒ Codec::Data
Returns the data for the disposition.
106 107 108 109 110 111 112 |
# File 'lib/core/disposition.rb', line 106 def data if @local @data else Codec::Data.to_object(Cproton.pn_disposition_data(@impl)) end end |
#data=(data)
Sets the data for the disposition.
97 98 99 100 |
# File 'lib/core/disposition.rb', line 97 def data=(data) raise AttributeError.new("data attribute is read-only") unless @local @data = data end |