XMLRPC::Marshal

Public Class Methods

dump( param ) click to toggle source
Alias for: dump_response
dump_call( methodName, *params ) click to toggle source
 
               # File xmlrpc/marshal.rb, line 23
def dump_call( methodName, *params )
  new.dump_call( methodName, *params )
end
            
dump_response( param ) click to toggle source
 
               # File xmlrpc/marshal.rb, line 27
def dump_response( param )
  new.dump_response( param )
end
            
Also aliased as: dump
load( stringOrReadable ) click to toggle source
Alias for: load_response
load_call( stringOrReadable ) click to toggle source
 
               # File xmlrpc/marshal.rb, line 31
def load_call( stringOrReadable )
  new.load_call( stringOrReadable )
end
            
load_response( stringOrReadable ) click to toggle source
 
               # File xmlrpc/marshal.rb, line 35
def load_response( stringOrReadable )
  new.load_response( stringOrReadable )
end
            
Also aliased as: load
new( parser = nil, writer = nil ) click to toggle source

instance methods —————————-

 
               # File xmlrpc/marshal.rb, line 46
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 xmlrpc/marshal.rb, line 51
def dump_call( methodName, *params )
  create.methodCall( methodName, *params )
end
            
dump_response( param ) click to toggle source
 
               # File xmlrpc/marshal.rb, line 55
def dump_response( param )
  create.methodResponse( ! param.kind_of?( XMLRPC::FaultException ) , param )
end
            
load_call( stringOrReadable ) click to toggle source

returns [ methodname, params ]

 
               # File xmlrpc/marshal.rb, line 62
def load_call( stringOrReadable )
  parser.parseMethodCall( stringOrReadable )
end
            
load_response( stringOrReadable ) click to toggle source

returns paramOrFault

 
               # File xmlrpc/marshal.rb, line 69
def load_response( stringOrReadable )
  parser.parseMethodResponse( stringOrReadable )[1]
end
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus