Skip to content

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

Base implementation of ATH::Params::ParamInterface.

Direct known subclasses

Athena::Framework::Params::ScalarParam

Constructors#

.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 #

:inherit:

View source

#description #

:inherit:

View source

#has_default? #

If this argument has a default value.

View source

#incompatibles #

:inherit:

View source

#key #

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 ATHA::QueryParam.

View source

#name #

:inherit:

View source

#nilable? #

If nil is a valid value for the param.

View source

#strict? #

:inherit:

View source