class Athena::Routing::Params::ParamFetcher
- Athena::Routing::Params::ParamFetcher
- Reference
- Object
Overview
Basic implementation of ART::Params::ParamFetcherInterface
.
NOTE May only be used after the related ART::Action
has been resolved.
Included Modules
Defined in:
params/param_fetcher.crConstructors
Instance Method Summary
-
#each(strict : Bool | Nil = 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 methods inherited from module Athena::Routing::Params::ParamFetcherInterface
each(strict : Bool | Nil = nil, & : String, _ -> Nil) : Nil
each,
get(name : String, strict : Bool | Nil = nil)
get
Constructor Detail
def self.new(request_store : ART::RequestStore, validator : AVD::Validator::ValidatorInterface)
#
Instance Method Detail
def each(strict : Bool | Nil = 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
.
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 the "Strict" section of ARTA::QueryParam
.