Helper class used to convert types.

Class Methods

Decodes the given str using XMLRPC::Base64.decode

Converts a String to true or false

Raises an exception if str is not 0 or 1

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

Converts a String to a Float

See also String.to_f

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

Converts a String to an Integer

See also String.to_i

Converts the given hash to a marshalled object.

Returns the given hash if an exception occurs.