@deprecated use {Delivery}
@private
@private
# File lib/core/disposition.rb, line 40 def initialize(impl, local) deprecated self.class, Delivery @impl = impl @local = local @data = nil @condition = nil @annotations = nil end
Returns the annotations for the disposition.
@return [Codec::Data] The annotations.
# File lib/core/disposition.rb, line 111 def annotations if @local @annotations else Codec::Data.to_object(Cproton.pn_disposition_annotations(@impl)) end end
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 102 def annotations=(annotations) raise AttributeError.new("annotations attribute is read-only") unless @local @annotations = annotations end
Returns the condition of the disposition.
@return [Codec::Data] The condition of the disposition.
# File lib/core/disposition.rb, line 134 def condition if @local @condition else Condition.convert(Cproton.pn_disposition_condition(@impl)) end end
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 125 def condition=(condition) raise AttributeError.new("condition attribute is read-only") unless @local @condition = condition end
Returns the data for the disposition.
@return [Codec::Data] The data.
# File lib/core/disposition.rb, line 88 def data if @local @data else Codec::Data.to_object(Cproton.pn_disposition_data(@impl)) end end
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 79 def data=(data) raise AttributeError.new("data attribute is read-only") unless @local @data = data end