Sha256: 64211c70e5517693106c1ac1a55b8646ca08cad9b36d27373c5af43809c079fa
Contents?: true
Size: 666 Bytes
Versions: 74
Compression:
Stored size: 666 Bytes
Contents
begin require 'soap/rpc/driver' require 'iRAA' rescue LoadError warn("Sorry, at the moment this example is not working.") sleep(5) exit(false) end module RAA extend SOAP class Driver def initialize(server = 'http://raa.ruby-lang.org/soap/1.0/', proxy = nil) @drv = SOAP::RPC::Driver.new(server, RAA::InterfaceNS) @drv.httpproxy = proxy if proxy @drv.mapping_registry = RAA::MappingRegistry RAA::Methods.each do |name, *params| @drv.add_method(name, params) end end def setLogDev(logdev) # ignored. end def method_missing(msg_id, *a, &b) @drv.__send__(msg_id, *a, &b) end end end
Version data entries
74 entries across 74 versions & 1 rubygems