class Qpid::Proton::Types::Described
@private
Attributes
descriptor[R]
value[R]
Public Class Methods
new(descriptor, value)
click to toggle source
# File lib/types/described.rb, line 28 def initialize(descriptor, value) @descriptor = descriptor @value = value end
Public Instance Methods
put(data)
click to toggle source
Puts the description into the Data object.
Arguments¶ ↑
-
data - the Qpid::Proton::Data instance
Examples¶ ↑
described = Qpid::Proton::Described.new("my-descriptor", "the value") data = Qpid::Proton::Data.new ... described.put(data)
# File lib/types/described.rb, line 46 def put(data) data.symbol = @descriptor data.string = @value end