Class XMLRPC::Marshal
In: xmlrpc/marshal.rb
Parent: Object

Methods

Included Modules

ParserWriterChooseMixin

External Aliases

dump_response -> dump
load_response -> load

Public Class methods

[Source]

# File xmlrpc/marshal.rb, line 23
      def dump_call( methodName, *params )
        new.dump_call( methodName, *params )
      end

[Source]

# File xmlrpc/marshal.rb, line 27
      def dump_response( param )
        new.dump_response( param )
      end

[Source]

# File xmlrpc/marshal.rb, line 31
      def load_call( stringOrReadable )
        new.load_call( stringOrReadable )
      end

[Source]

# File xmlrpc/marshal.rb, line 35
      def load_response( stringOrReadable )
        new.load_response( stringOrReadable )
      end

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

[Source]

# File xmlrpc/marshal.rb, line 46
    def initialize( parser = nil, writer = nil )
      set_parser( parser )
      set_writer( writer )
    end

Public Instance methods

[Source]

# File xmlrpc/marshal.rb, line 51
    def dump_call( methodName, *params )
      create.methodCall( methodName, *params )
    end

[Source]

# File xmlrpc/marshal.rb, line 55
    def dump_response( param ) 
      create.methodResponse( ! param.kind_of?( XMLRPC::FaultException ) , param )
    end

returns [ methodname, params ]

[Source]

# File xmlrpc/marshal.rb, line 62
    def load_call( stringOrReadable )
      parser.parseMethodCall( stringOrReadable )
    end

returns paramOrFault

[Source]

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

[Validate]