Class Paginator::Page
In: lib/paginator.rb
Parent: Object
Paginator Enumerable dot/f_3.png

Page object

Retrieves items for a page and provides metadata about the position of the page in the paginator

Methods

each   first_item_number   items   last_item_number   next   next?   prev   prev?  

Included Modules

Enumerable

Attributes

number  [R] 
pager  [R] 

Public Instance methods

The "item number" of the first item on this page

Retrieve the items for this page

  • Caches

The "item number" of the last item on this page

Get next page (if possible)

Checks to see if there‘s a page after this one

# Get previous page (if possible)

Checks to see if there‘s a page before this one

[Validate]