class Qpid::Proton::Disposition
Constants
- PROTON_METHOD_PREFIX
@private
Attributes
impl[R]
Public Class Methods
new(impl, local)
click to toggle source
@private
# File lib/core/disposition.rb, line 58 def initialize(impl, local) deprecated self.class, Delivery @impl = impl @local = local @data = nil @condition = nil @annotations = nil end
Public Instance Methods
annotations()
click to toggle source
Returns the annotations for the disposition.
@return [Codec::Data] The annotations.
# 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)
click to toggle source
Sets the annotations for the disposition.
@param annotations [Codec::Data] The annotations.
@raise [AttributeError] If the disposition is remote.
# File lib/core/disposition.rb, line 120 def annotations=(annotations) raise AttributeError.new("annotations attribute is read-only") unless @local @annotations = annotations end
condition()
click to toggle source
Returns the condition of the disposition.
@return [Codec::Data] The condition of the disposition.
# File lib/core/disposition.rb, line 152 def condition if @local @condition else Condition.convert(Cproton.pn_disposition_condition(@impl)) end end
condition=(condition)
click to toggle source
Sets the condition for the disposition.
@param condition [Codec::Data] The condition.
@raise [AttributeError] If the disposition is remote.
# File lib/core/disposition.rb, line 143 def condition=(condition) raise AttributeError.new("condition attribute is read-only") unless @local @condition = condition end
data()
click to toggle source
Returns the data for the disposition.
@return [Codec::Data] The data.
# 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)
click to toggle source
Sets the data for the disposition.
@param data [Codec::Data] The data.
@raise [AttributeError] If the disposition is remote.
# File lib/core/disposition.rb, line 97 def data=(data) raise AttributeError.new("data attribute is read-only") unless @local @data = data end