public Method

Method.expects_to_hash(params)

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

Source Code

# File action_web_service/api.rb, line 208
def expects_to_hash(params)
  return {} if @expects.nil?
  h = {}
  @expects.zip(params){ |type, param| h[type.name] = param }
  h
end
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.