class Qpid::Proton::Described

Attributes

descriptor[R]
value[R]

Public Class Methods

new(descriptor, value) click to toggle source
# File lib/qpid_proton/described.rb, line 29
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

Examples

described = Qpid::Proton::Described.new("my-descriptor", "the value")
data = Qpid::Proton::Data.new
...
described.put(data)
# File lib/qpid_proton/described.rb, line 47
def put(data)
  data.symbol = @descriptor
  data.string = @value
end