module Athena::Routing::Params::ParamFetcherInterface
Overview
Provides an API to fetch parameters from the current request.
Direct including types
Defined in:
params/param_fetcher_interface.crInstance Method Summary
-
#each(strict : Bool | Nil = nil, & : String, _ -> Nil) : Nil
Yields the name and value of each
ART::Params::ParamInterface
related to the currentART::Action#params
. -
#get(name : String, strict : Bool | Nil = nil)
Returns the value of the parameter with the provided name.
Instance Method Detail
abstract
def each(strict : Bool | Nil = nil, & : String, _ -> Nil) : Nil
#
Yields the name and value of each ART::Params::ParamInterface
related to the current ART::Action#params
.
Optionally allows determing if the params should be validated strictly. See ART::QueryParam@strict.
abstract
def get(name : String, strict : Bool | Nil = nil)
#
Returns the value of the parameter with the provided name.
Optionally allows determing if the params should be validated strictly. See ART::QueryParam@strict.