class Athena::Routing::Params::ParamFetcher
inherits Reference
#
Basic implementation of ART::Params::ParamFetcherInterface
.
NOTE: May only be used after the related ART::Action
has been resolved.
Included modules
Athena::Routing::Params::ParamFetcherInterface
Class methods#
.new(request_store : ART::RequestStore, validator : AVD::Validator::ValidatorInterface)
#
(request_store : ART::RequestStore, validator : AVD::Validator::ValidatorInterface)
Methods#
#each(strict : Bool? = nil, &) : Nil
#
(strict : Bool? = 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 the "Strict" section of ARTA::QueryParam
.
#get(name : String, strict : Bool? = nil)
#
(name : String, strict : Bool? = nil)
Returns the value of the parameter with the provided name.
Optionally allows determing if the params should be validated strictly. See the "Strict" section of ARTA::QueryParam
.