NAME
Mongol::Models::Page - Result object for pagination
SYNOPSIS
use POSIX qw( ceil );
my $page = Models::Person->paginate( { age => { '$gt' => 25 } }, 0, 10 );
my $total_pages = ceil( $page->total() / $page->rows() );
my $current_page = ( $page->start() / $page->rows() ) + 1;
DESCRIPTION
ATTRIBUTES
items
my $array_ref = $page->items();
start
my $start = $page->start();
rows
my $rows = $page->rows();