Class: XMLRPC::Marshal (Ruby 2.3.2)
Description: Class : XMLRPC::Marshal - Ruby 2.3.2

- Home
- Core 2.3.2
- Std-lib 2.3.2
- Downloads

Support for the Ruby 2.3 series has ended. See here for reference.

### Home Classes Methods

### In Files

- xmlrpc/marshal.rb

### Parent

Object

### Methods

- ::dump
- ::dump_call
- ::dump_response
- ::load
- ::load_call
- ::load_response
- ::new
- #dump_call
- #dump_response
- #load_call
- #load_response

### Included Modules

- XMLRPC::ParserWriterChooseMixin

### Class/Module Index

Quicksearch

- NQXML
- NQXML::Node
- XMLRPC
- XMLRPC::Base64
- XMLRPC::BasicServer
- XMLRPC::CGIServer
- XMLRPC::Client
- XMLRPC::Client::Proxy
- XMLRPC::Config
- XMLRPC::Convert
- XMLRPC::Create
- XMLRPC::DateTime
- XMLRPC::FaultException
- XMLRPC::Marshal
- XMLRPC::Marshallable
- XMLRPC::ModRubyServer
- XMLRPC::ParseContentType
- XMLRPC::ParserWriterChooseMixin
- XMLRPC::Server
- XMLRPC::Service
- XMLRPC::Service::BasicInterface
- XMLRPC::Service::Interface
- XMLRPC::Service::PublicInstanceMethodsInterface
- XMLRPC::WEBrickServlet
- XMLRPC::XMLParser
- XMLRPC::XMLParser::AbstractStreamParser
- XMLRPC::XMLParser::AbstractTreeParser
- XMLRPC::XMLParser::LibXMLStreamParser
- XMLRPC::XMLParser::LibXMLStreamParser::LibXMLStreamListener
- XMLRPC::XMLParser::NQXMLParser
- XMLRPC::XMLParser::NQXMLStreamParser
- XMLRPC::XMLParser::NQXMLStreamParser::XMLRPCParser
- XMLRPC::XMLParser::NQXMLTreeParser
- XMLRPC::XMLParser::REXMLStreamParser
- XMLRPC::XMLParser::REXMLStreamParser::StreamListener
- XMLRPC::XMLParser::StreamParserMixin
- XMLRPC::XMLParser::XMLParser
- XMLRPC::XMLParser::XMLScanStreamParser
- XMLRPC::XMLParser::XMLScanStreamParser::XMLScanParser
- XMLRPC::XMLParser::XMLStreamParser
- XMLRPC::XMLParser::XMLTreeParser
- XMLRPC::XMLWriter
- XMLRPC::XMLWriter::Abstract
- XMLRPC::XMLWriter::Simple
- XMLRPC::XMLWriter::XMLParser

No matching classes.

# XMLRPC::Marshal

Marshalling of XMLRPC::Create#methodCall and XMLRPC::Create#methodResponse

### 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 20
    def dump_call( methodName, *params )
      new.dump_call( methodName, *params )
    end

dump_response( param ) click to toggle source

                   # File xmlrpc/marshal.rb, line 24
    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 28
    def load_call( stringOrReadable )
      new.load_call( stringOrReadable )
    end

load_response( stringOrReadable ) click to toggle source

                   # File 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 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 xmlrpc/marshal.rb, line 46
    def dump_call( methodName, *params )
      create.methodCall( methodName, *params )
    end

dump_response( param ) click to toggle source

                   # File 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 xmlrpc/marshal.rb, line 55
    def load_call( stringOrReadable )
      parser.parseMethodCall( stringOrReadable )
    end

load_response( stringOrReadable ) click to toggle source

Returns `paramOrFault`

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