Class: ActionWebService::API::Method

Class | ActionWebService::API::Method
In: | lib/action_web_service/api.rb
Parent: | Object

Represents an API method and its associated metadata, and provides functionality to assist in commonly performed API method tasks.

### Methods

[] cast_expects cast_returns expects_index_of expects_to_hash new param_names to_s

### Attributes

expects | [R] |
name | [R] |
public_name | [R] |
returns | [R] |

### Public Class methods

new(name, public_name, expects, returns)

### Public Instance methods

[](sig_type)

Backwards compatibility with previous API

cast_expects(params)

Casts a set of Ruby values into the expected Ruby values

cast_returns(return_value)

Cast a Ruby return value into the expected Ruby value

expects_index_of(param_name)

Returns the index of the first expected parameter with the given name

expects_to_hash(params)

Returns a hash keyed by parameter name for the given parameter list

param_names()

The list of parameter names for this method

to_s()

String representation of this method

[Validate]