From 814ffe24bd7c1941a06d7f5f2ab9b9a090f1b893 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@783851 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qmf/ruby/qmf.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'qpid/cpp/bindings/qmf/ruby') diff --git a/qpid/cpp/bindings/qmf/ruby/qmf.rb b/qpid/cpp/bindings/qmf/ruby/qmf.rb index 2c1033f6ae..8f92d62a8b 100644 --- a/qpid/cpp/bindings/qmf/ruby/qmf.rb +++ b/qpid/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