summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/bindings')
-rw-r--r--qpid/cpp/bindings/qmf/ruby/qmf.rb19
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