Athena::Routing::Parameters
A container representing parameters defined via ART::Route#defaults, or returned when matching a route.
Allows the value to be of any type.
Constructors
Instance methods
Returns the value of the parameter with the provided name as a String.
Raises a KeyError if no parameter with that name exists.
Sets a parameter with the provided name to value.
Returns the value of the parameter with the provided name as a String if it exists, otherwise nil.
Returns the value of the parameter with the provided name, casted to the provided type.
Raises a KeyError if no parameter with that name exists.
Returns the value of the parameter with the provided name casted to the provided type if it exists, otherwise nil.
Returns true if a parameter with the provided name exists, otherwise false.
Returns a Hash(String, String?) representation of these parameters.
Values that are not String? are converted via #to_s.