Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Pager
- constructor: (attributes) ->
- @currentPage = attributes.current_page
- @totalPages = attributes.total_pages
- @perPage = attributes.per_page
- @totalEntries = attributes.total_entries
- firstPage: ->
- @currentPage == 1
- lastPage: ->
- @currentPage == @totalPages
Add Comment
Please, Sign In to add comment