Class: LHS::Pagination::Page
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#count, #first_page, #initialize, #last_page, #limit, #limit_value, #next?, #next_page, #offset, page_to_offset, #pages_left, #prev_page, #previous?, #total, #total_pages
Constructor Details
This class inherits a constructor from LHS::Pagination::Base
Instance Method Details
#current_page ⇒ Object
3 4 5 |
# File 'lib/lhs/pagination/page.rb', line 3 def current_page offset end |
#next_offset(step = 1) ⇒ Object
7 8 9 |
# File 'lib/lhs/pagination/page.rb', line 7 def next_offset(step = 1) current_page + step end |