Method: XMLRPC::Client::Proxy#initialize
- Defined in:
- lib/xmlrpc/client.rb
#initialize(server, prefix, args = [], meth = :call, delim = ".") ⇒ Proxy
Creates an object which provides XMLRPC::Client::Proxy#method_missing.
The given server must be an instance of XMLRPC::Client, which is the XML-RPC server to be used for a XML-RPC call.
prefix and delim will be prepended to the method name called onto this object.
An optional parameter meth is the method to use for a RPC. It can be either, call, call2, call_async, call2_async
args are arguments which are automatically given to every XML-RPC call before being provided through method_missing.
591 592 593 594 595 596 |
# File 'lib/xmlrpc/client.rb', line 591 def initialize(server, prefix, args=[], meth=:call, delim=".") @server = server @prefix = prefix ? prefix + delim : "" @args = args @meth = meth end |