Method: BasePretty#after

Defined in:
lib/veye/views/base_pretty.rb

#after(paging = nil, allow_pagination = false) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/veye/views/base_pretty.rb', line 6

def after(paging = nil, allow_pagination = false)
  if allow_pagination and paging
    printf("\n#-- %s\n", "Pagination information".bright)
    printf("\t%-15s: %s\n", "Current page", paging['current_page'])
    printf("\t%-15s: %s\n", "Per page", paging['per_page'])
    printf("\t%-15s: %s\n", "Total pages", paging['total_pages'])
    printf("\t%-15s: %s\n", "Total entries", paging['total_entries'])
  end
end