class XMLRPC::Marshal
Marshalling of XMLRPC::Create#methodCall and XMLRPC::Create#methodResponse
Public Class Methods
dump_call( methodName, *params )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 20 def dump_call( methodName, *params ) new.dump_call( methodName, *params ) end
dump_response( param )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 24 def dump_response( param ) new.dump_response( param ) end
Also aliased as: dump
load_call( stringOrReadable )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 28 def load_call( stringOrReadable ) new.load_call( stringOrReadable ) end
load_response( stringOrReadable )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 32 def load_response( stringOrReadable ) new.load_response( stringOrReadable ) end
Also aliased as: load
new( parser = nil, writer = nil )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 41 def initialize( parser = nil, writer = nil ) set_parser( parser ) set_writer( writer ) end
Public Instance Methods
dump_call( methodName, *params )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 46 def dump_call( methodName, *params ) create.methodCall( methodName, *params ) end
dump_response( param )
click to toggle source
# File lib/xmlrpc/marshal.rb, line 50 def dump_response( param ) create.methodResponse( ! param.kind_of?( XMLRPC::FaultException ) , param ) end
load_call( stringOrReadable )
click to toggle source
Returns [ methodname, params ]
# File lib/xmlrpc/marshal.rb, line 55 def load_call( stringOrReadable ) parser.parseMethodCall( stringOrReadable ) end
load_response( stringOrReadable )
click to toggle source
Returns paramOrFault
# File lib/xmlrpc/marshal.rb, line 60 def load_response( stringOrReadable ) parser.parseMethodResponse( stringOrReadable )[1] end