NAME
Gears::Router::Match - Match result object
SYNOPSIS
use Gears::Router::Match;
my $match = Gears::Router::Match->new(
location => $location,
matched => ['value1', 'value2'],
);
my $loc = $match->location;
my $data = $match->matched;
DESCRIPTION
Gears::Router::Match represents a successful match result when a path matches a location pattern. It contains the location that was matched and the data extracted from the path according to the location's pattern.
INTERFACE
Attributes
location
The Gears::Router::Location object that was matched.
Required in constructor
matched
An array reference containing the values extracted from the matched path. The order and meaning of these values depend on the pattern tokens defined in the location's Gears::Router::Pattern object.
Required in constructor
Methods
new
$object = $class->new(%args)
A standard Mooish constructor. Consult "Attributes" section to learn what keys can key passed in %args.