Class: Veye::Pagination::PaginationCSV
- Inherits:
-
Object
- Object
- Veye::Pagination::PaginationCSV
- Defined in:
- lib/veye/pagination/pagination_csv.rb
Instance Method Summary collapse
Instance Method Details
#after ⇒ Object
8 |
# File 'lib/veye/pagination/pagination_csv.rb', line 8 def after; end |
#before ⇒ Object
4 5 6 |
# File 'lib/veye/pagination/pagination_csv.rb', line 4 def before printf("current_page,per_page,total_pages,total_entries\n") end |
#format(paging) ⇒ Object
10 11 12 13 14 |
# File 'lib/veye/pagination/pagination_csv.rb', line 10 def format(paging) printf("%s,%s,%s,%s\n", paging['current_page'], paging['per_page'], paging['total_pages'], paging['total_entries']) end |