Module

SignatureTypes

Action Web Service supports the following base types in a signature:

:int
Represents an integer value, will be cast to an integer using Integer(value)
:string
Represents a string value, will be cast to an string using the to_s method on an object
:base64
Represents a Base 64 value, will contain the binary bytes of a Base 64 value sent by the caller
:bool
Represents a boolean value, whatever is passed will be cast to boolean (true, ‘1’, ‘true’, ‘y’, ‘yes’ are taken to represent true; false, ‘0’, ‘false’, ‘n’, ‘no’ and nil represent false)
:float
Represents a floating point value, will be cast to a float using Float(value)
:time
Represents a timestamp, will be cast to a Time object
:datetime
Represents a timestamp, will be cast to a DateTime object
:date
Represents a date, will be cast to a Date object

For structured types, you’ll need to pass in the Class objects of ActionWebService::Struct and ActiveRecord::Base derivatives.

Public Methods
canonical_signature
canonical_signature_entry
canonical_type
canonical_type_class
canonical_type_name
class_to_type_name
derived_from?
symbol_name
type_name_to_class
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.