summaryrefslogtreecommitdiff
path: root/qpid/cpp/bindings/qmf2/ruby
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-01-11 16:02:23 +0000
committerTed Ross <tross@apache.org>2011-01-11 16:02:23 +0000
commit8850626ab31ff00e0eca619fda60a72775005eaa (patch)
tree26401f8d7645e4b6530def1321976892ffbbd51a /qpid/cpp/bindings/qmf2/ruby
parente6d7b4bec1db40e93496177db4fdcc0b2cc8fcd2 (diff)
downloadqpid-python-8850626ab31ff00e0eca619fda60a72775005eaa.tar.gz
QMFv2 API change:
1) Added public constructor for DataAddr(Variant::Map) 2) Fixed Python and Ruby typemaps to support Variant::Map& and Variant::List& with const 3) Added support for building Queries based on object-id maps in both Python and Ruby wrappers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1057709 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf2/ruby')
-rw-r--r--qpid/cpp/bindings/qmf2/ruby/qmf2.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
index 6c6dbf357d..65cc695c45 100644
--- a/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
+++ b/qpid/cpp/bindings/qmf2/ruby/qmf2.rb
@@ -233,8 +233,10 @@ module Qmf2
class Query
attr_reader :impl
- def initialize
- @impl = nil
+ def initialize(arg1, arg2=nil, arg3=nil)
+ if arg1.class == Qmf2::DataAddr
+ @impl = Cqmf2::Query.new(arg1.impl)
+ end
end
end
@@ -390,8 +392,12 @@ module Qmf2
class DataAddr
attr_reader :impl
- def initialize(impl)
- @impl = impl
+ def initialize(arg)
+ if arg.class == Hash
+ @impl = Cqmf2::DataAddr.new(arg)
+ else
+ @impl = arg
+ end
end
def ==(other)