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_smethod 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’ andnilrepresent 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
Timeobject :datetime-
Represents a timestamp, will be cast to a
DateTimeobject :date-
Represents a date, will be cast to a
Dateobject
For structured types, you’ll need to pass in the Class objects of ActionWebService::Struct and ActiveRecord::Base derivatives.