Paginator::Page(T)
Inherits Paginator::SharedMethods < Reference < Object
Constructors
new(items : Array(T), count : Int64, vars : Hash(Symbol, Array(Symbol) | Bool | Int32 | String | Symbol), current_page : Int32, page : Int32, per_page : Int32, limit : Int32, outset : Int32, offset : Int32, last : Int32)
Sourcenew(items : Array(T), count : Int64, vars : Hash(Symbol, _))
SourceClass methods
from_search_results(results : Array(T), query : String | Nil, page : Int32, per_page : Int32)
Add a method specifically for search results
Instance methods
count
Sourcecurrent_page
Sourcehas_next
Sourceitems
Sourcelast
Sourcelimit
Sourcenext
Sourcenext_page
Sourceoutset
Sourcepage
Sourceprev
Sourceprev_page
Sourceseries
Sourcetotal
Sourcevars
Source