module Roda::RodaPlugins::TypecastParams::InstanceMethods

def typecast_body_params

Type conversion methods will be called on the result of this method.
access to parameters in the request's body.
Return and cache the instance of the TypecastParams class wrapping
def typecast_body_params
  @_typecast_body_params ||= self.class::TypecastParams.new(@_request.POST)
end

def typecast_params

Type conversion methods will be called on the result of this method.
to the request's params (merging query string params and body params).
Return and cache the instance of the TypecastParams class wrapping access
def typecast_params
  @_typecast_params ||= self.class::TypecastParams.new(@_request.params)
end

def typecast_query_params

Type conversion methods will be called on the result of this method.
access to parameters in the request's query string.
Return and cache the instance of the TypecastParams class wrapping
def typecast_query_params
  @_typecast_query_params ||= self.class::TypecastParams.new(@_request.GET)
end