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 | a90518dc4dac4a4065f729dbd1fb607a710bfd0c (patch) | |
| tree | cba13a151e3f6e04c8f666c61efc024b81a31942 /cpp | |
| parent | b605d315f000587da06ad8a13020e8034cb93a6c (diff) | |
| download | qpid-python-a90518dc4dac4a4065f729dbd1fb607a710bfd0c.tar.gz | |
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
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/bindings/qmf/ruby/qmf.rb | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
