The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::ResultSet::Faceter::Facet - The result of a faceting operation

SYNOPSIS

DESCRIPTION

ATTRIBUTES

count

The number of facets in this result.

facets

A HashRef of facets in the form of:

  {
    'facet_name_1' => [
        { 'facet_value_A' => $count_A },
        { 'facet_value_B' => $count_B }
    ],
    'facet_name_2' => [
        { 'facet_value_A' => $count_A },
        { 'facet_value_B' => $count_B }
    ]
  }

The facets will be in whatever order you specified them to be in when you added the facet to the DBIx::Class::ResultSet::Faceter.

METHODS

count

Count of facets in this result.

names

An array of facet names in this Result.

AUTHOR

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE

Copyright 2010 Cold Hard Code, LLC

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.