base64

base64(str) Class Public methods Decodes the given str using XMLRPC::Base64.decode

boolean

boolean(str) Class Public methods Converts a String to true or false Raises an exception if str is not 0 or 1

dateTime

dateTime(str) Class Public methods Converts a the given str to a dateTime.iso8601 formatted date. Raises an exception if the String isn't in dateTime.iso8601 format. See also, XMLRPC::DateTime

double

double(str) Class Public methods Converts a String to a Float See also String#to_f

fault

fault(hash) Class Public methods Converts the given hash to an XMLRPC::FaultException object by passing the faultCode and faultString attributes of the Hash to XMLRPC::FaultException.new Raises an Exception if the given hash doesn't meet the requirements. Those requirements being: 2 keys 'faultCode' key is an Integer 'faultString' key is a String

int

int(str) Class Public methods Converts a String to an Integer See also String#to_i

struct

struct(hash) Class Public methods Converts the given hash to a marshalled object. Returns the given hash if an exception occurs.

new

new(xml_writer = nil) Class Public methods

methodCall

methodCall(name, *params) Instance Public methods

methodResponse

methodResponse(is_ret, *params) Instance Public methods Generates a XML-RPC methodResponse document When is_ret is false then the params array must contain only one element, which is a structure of a fault return-value. When is_ret is true then a normal return-value of all the given params is created.