Type:
Class

XML-RPC calls look nicer!

You can call any method onto objects of that class - the object handles #method_missing and will forward the method call to a XML-RPC server.

Don't use this class directly, instead use the public instance method XMLRPC::Client#proxy or XMLRPC::Client#proxy2.

require "xmlrpc/client"

server = XMLRPC::Client.new("www.ruby-lang.org", "/RPC2", 80)

michael  = server.proxy("michael")
michael2 = server.proxy("michael", 4)

# both calls should return the same value '9'.
p michael.add(4,5)
p michael2.add(5)
new

new(server, prefix, args=[], meth=:call, delim=".") Class Public methods Creates

2015-06-13 16:17:04
method_missing

method_missing(mid, *args) Instance Public methods Every method call is forwarded

2015-06-13 16:21:46