abstract struct Athena::Routing::Params::Param

Overview

Base implementation of ART::Params::ParamInterface.

Direct Known Subclasses

Defined in:

params/param.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def constraints : Array(AVD::Constraint) #

:inherit:


[View source]
def description : String | Nil #

:inherit:


[View source]
def has_default? : Bool #

If this argument has a default value.


[View source]
def incompatibles : Array(String) | Nil #

:inherit:


[View source]
def 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]
def name : String #

:inherit:


[View source]
def nilable? : Bool #

If nil is a valid value for the param.


[View source]
def strict? : Bool #

:inherit:


[View source]