module Roda::RodaPlugins::TypecastParams::InstanceMethods

  1. lib/roda/plugins/typecast_params.rb

Public Instance methods

typecast_body_params()

Return and cache the instance of the TypecastParams class wrapping access to parameters in the request’s body. Type conversion methods will be called on the result of this method.

[show source]
     # File lib/roda/plugins/typecast_params.rb
1175 def typecast_body_params
1176   @_typecast_body_params ||= self.class::TypecastParams.new(@_request.POST)
1177 end
typecast_params()

Return and cache the instance of the TypecastParams class wrapping access to the request’s params (merging query string params and body params). Type conversion methods will be called on the result of this method.

[show source]
     # File lib/roda/plugins/typecast_params.rb
1161 def typecast_params
1162   @_typecast_params ||= self.class::TypecastParams.new(@_request.params)
1163 end
typecast_query_params()

Return and cache the instance of the TypecastParams class wrapping access to parameters in the request’s query string. Type conversion methods will be called on the result of this method.

[show source]
     # File lib/roda/plugins/typecast_params.rb
1168 def typecast_query_params
1169   @_typecast_query_params ||= self.class::TypecastParams.new(@_request.GET)
1170 end