1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/soap/icd/IICD.rb

18 lines
401 B
Ruby
Raw Normal View History

module IICD
# All methods in a single namespace?!
InterfaceNS = 'http://www.iwebmethod.net'
Methods = [
['SearchWord', 'query', 'partial'],
['GetItemById', 'id'],
['EnumWords'],
['FullTextSearch', 'query'],
]
def IICD.add_method(drv)
Methods.each do |method, *param|
drv.add_method_with_soapaction(method, InterfaceNS + "/#{ method }", *param )
end
end
end