Performs casting of arbitrary values into the correct types for the signature
Methods
Included Modules
- ActionWebService::SignatureTypes
Public Class methods
[ show source ]
# File vendor/rails/actionwebservice/lib/action_web_service/casting.rb, line 11
11: def initialize(api_method)
12: @api_method = api_method
13: end
Public Instance methods
Coerces the parameters in params (an Enumerable) into the types this method expects
[ show source ]
# File vendor/rails/actionwebservice/lib/action_web_service/casting.rb, line 17
17: def cast_expects(params)
18: self.class.cast_expects(@api_method, params)
19: end
Coerces the given return_value into the the type returned by this method
[ show source ]
# File vendor/rails/actionwebservice/lib/action_web_service/casting.rb, line 23
23: def cast_returns(return_value)
24: self.class.cast_returns(@api_method, return_value)
25: end