Class: Veye::Pagination::PaginationCSV

Inherits:
Object
  • Object
show all
Defined in:
lib/veye/pagination/pagination_csv.rb

Instance Method Summary collapse

Instance Method Details

#afterObject



8
# File 'lib/veye/pagination/pagination_csv.rb', line 8

def after; end

#beforeObject



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