Skip to content

module Athena::Routing::Params::ParamInterface #

Represents a request parameter; e.x. query param, form data, a file, etc.

See ARTA::QueryParam and ARTA::RequestParam.

Direct including types

Athena::Routing::Params::QueryParam(T) Athena::Routing::Params::RequestParam(T)


abstract #constraints : Array(AVD::Constraint) #

Returns the AVD::Constraints that should be used to validate the parameter's value.

View source

abstract #default #

Returns the value that should be used if #strict? is false and the parameter was not provided, defaulting to nil.

View source

abstract #description : String? #

Returns a human readable summary of what the parameter is used for. In the future this may be used to supplement auto generated endpoint documentation.

View source

abstract #extract_value(request : ART::Request, default : _ = nil) #

Returns the self's value from the provided request, or default if it was not present.

View source

abstract #incompatibles : Array(String)? #

Returns the parameters that may not be present at the same time as self. See the "Incompatibilities" section of ARTA::QueryParam.

View source

abstract #name : String #

Returns the name of the parameter, maps to the controller action argument name.

View source

abstract #strict? : Bool #

Denotes whether self should be processed strictly. See the "Strict" section of ARTA::QueryParam.

View source