From a90518dc4dac4a4065f729dbd1fb607a710bfd0c Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 11 Jun 2009 17:15:16 +0000 Subject: QPID-1898 - Committed patch from Ian Main. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783851 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qmf/ruby/qmf.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'cpp') diff --git a/cpp/bindings/qmf/ruby/qmf.rb b/cpp/bindings/qmf/ruby/qmf.rb index 2c1033f6ae..8f92d62a8b 100644 --- a/cpp/bindings/qmf/ruby/qmf.rb +++ b/cpp/bindings/qmf/ruby/qmf.rb @@ -1,6 +1,7 @@ require 'qmfengine' require 'thread' +require 'socket' module Qmf @@ -358,6 +359,10 @@ module Qmf @impl.setUnit(kwargs[:unit]) if kwargs.include?(:unit) @impl.setDesc(kwargs[:desc]) if kwargs.include?(:desc) end + + def name + @impl.getName + end end class SchemaStatistic @@ -392,6 +397,20 @@ module Qmf @methods << meth @impl.addMethod(meth.impl) end + + def name + @impl.getName + end + + def properties + unless @properties + @properties = [] + @impl.getPropertyCount.times do |i| + @properties << @impl.getProperty(i) + end + end + return @properties + end end class SchemaEventClass -- cgit v1.2.1