Skip to content

abstract struct Athena::Routing::Params::Param
inherits Struct #

Base implementation of ART::Params::ParamInterface.

Direct known subclasses

Athena::Routing::Params::ScalarParam

Class methods#

.new(name : String, has_default : Bool = false, incompatibles : Array(String)? = nil, strict : Bool = true, nilable : Bool = false, key : String? = nil, description : String? = nil) #

View source

Methods#

#constraints : Array(AVD::Constraint) #

:inherit:

View source

#description : String? #

:inherit:

View source

#has_default? : Bool #

If this argument has a default value.

View source

#incompatibles : Array(String)? #

:inherit:

View source

#key : String #

Returns the key that should be used to access self from a given request.

Defaults to #name, but may be customized. See the "Key" section of ARTA::QueryParam.

View source

#name : String #

:inherit:

View source

#nilable? : Bool #

If nil is a valid value for the param.

View source

#strict? : Bool #

:inherit:

View source