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
1177 def typecast_body_params
1178   @_typecast_body_params ||= self.class::TypecastParams.new(@_request.POST)
1179 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
1163 def typecast_params
1164   @_typecast_params ||= self.class::TypecastParams.new(@_request.params)
1165 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
1170 def typecast_query_params
1171   @_typecast_query_params ||= self.class::TypecastParams.new(@_request.GET)
1172 end