Class: XMLRPC::Marshal
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
ParserWriterChooseMixin
|
|
Inherits: | Object |
Defined in: | lib/xmlrpc/marshal.rb |
Overview
Marshalling of Create#methodCall and Create#methodResponse
Class Method Summary
-
.dump(param)
Alias for .dump_response.
- .dump_call(methodName, *params)
- .dump_response(param) (also: .dump)
-
.load(stringOrReadable)
Alias for .load_response.
- .load_call(stringOrReadable)
- .load_response(stringOrReadable) (also: .load)
-
.new(parser = nil, writer = nil) ⇒ Marshal
constructor
class self.
Instance Method Summary
- #dump_call(methodName, *params)
- #dump_response(param)
-
#load_call(stringOrReadable)
Returns
[ methodname, params ]
. -
#load_response(stringOrReadable)
Returns
paramOrFault
ParserWriterChooseMixin
- Included
#set_parser | Sets the |
#set_writer | Sets the |
#create, #parser |
Constructor Details
.new(parser = nil, writer = nil) ⇒ Marshal
class self
# File 'lib/xmlrpc/marshal.rb', line 42
def initialize( parser = nil, writer = nil ) set_parser( parser ) set_writer( writer ) end
Class Method Details
.dump(param)
Alias for .dump_response.
# File 'lib/xmlrpc/marshal.rb', line 37
alias dump dump_response
.dump_call(methodName, *params)
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 21
def dump_call( methodName, *params ) new.dump_call( methodName, *params ) end
.dump_response(param) Also known as: .dump
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 25
def dump_response( param ) new.dump_response( param ) end
.load(stringOrReadable)
Alias for .load_response.
# File 'lib/xmlrpc/marshal.rb', line 38
alias load load_response
.load_call(stringOrReadable)
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 29
def load_call( stringOrReadable ) new.load_call( stringOrReadable ) end
.load_response(stringOrReadable) Also known as: .load
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 33
def load_response( stringOrReadable ) new.load_response( stringOrReadable ) end
Instance Method Details
#dump_call(methodName, *params)
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 47
def dump_call( methodName, *params ) create.methodCall( methodName, *params ) end
#dump_response(param)
[ GitHub ]# File 'lib/xmlrpc/marshal.rb', line 51
def dump_response( param ) create.methodResponse( ! param.kind_of?( XMLRPC::FaultException ) , param ) end
#load_call(stringOrReadable)
Returns [ methodname, params ]
# File 'lib/xmlrpc/marshal.rb', line 56
def load_call( stringOrReadable ) parser.parseMethodCall( stringOrReadable ) end
#load_response(stringOrReadable)
Returns paramOrFault
# File 'lib/xmlrpc/marshal.rb', line 61
def load_response( stringOrReadable ) parser.parseMethodResponse( stringOrReadable )[1] end