@private
# File lib/types/described.rb, line 28 def initialize(descriptor, value) @descriptor = descriptor @value = value end
Puts the description into the Data object.
data - the Qpid::Proton::Data instance
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