diff options
| author | Ted Ross <tross@apache.org> | 2009-06-11 17:15:16 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-06-11 17:15:16 +0000 |
| commit | 814ffe24bd7c1941a06d7f5f2ab9b9a090f1b893 (patch) | |
| tree | ac1acdd06009004feb349415e11cf837f1f7e935 /qpid/cpp/bindings | |
| parent | bbfce705480c877be990e6b0425c4ead54e1fc92 (diff) | |
| download | qpid-python-814ffe24bd7c1941a06d7f5f2ab9b9a090f1b893.tar.gz | |
QPID-1898 - Committed patch from Ian Main.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@783851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
| -rw-r--r-- | qpid/cpp/bindings/qmf/ruby/qmf.rb | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
