Class: LHS::PagePagination

Inherits:
Pagination show all
Defined in:
lib/lhs/pagination.rb

Constant Summary

Constants inherited from Pagination

LHS::Pagination::DEFAULT_LIMIT

Instance Attribute Summary

Attributes inherited from Pagination

#data

Instance Method Summary collapse

Methods inherited from Pagination

#count, #first_page, #initialize, #last_page, #limit, #limit_value, #next_page, #offset, page_to_offset, #pages_left, #prev_page, #total, #total_pages

Constructor Details

This class inherits a constructor from LHS::Pagination

Instance Method Details

#current_pageObject



75
76
77
# File 'lib/lhs/pagination.rb', line 75

def current_page
  offset
end

#next_offsetObject



79
80
81
# File 'lib/lhs/pagination.rb', line 79

def next_offset
  current_page + 1
end