NAME

Raisin::Param - Parameter class for Raisin.

DESCRIPTION

Parameter class for Raisin. Validates request paramters.

required { shift->{required} }

Returns true if it's required parameter.

named

Returns true if it's path parameter.

name

Returns parameter name.

type

Returns paramter type object.

default

Returns default value if exists or undef.

regex

Return paramter regex if exists or undef.

validate

Process and validate parameter. Takes reference as the input paramter.

$p->validate(\$value);