Module: FidorApi::Collection::KaminariSupport

Included in:
FidorApi::Collection
Defined in:
lib/fidor_api/collection/kaminari_support.rb

Instance Method Summary collapse

Instance Method Details

#last_page?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/fidor_api/collection/kaminari_support.rb', line 4

def last_page?
  current_page == total_pages
end

#limit_valueObject



12
13
14
# File 'lib/fidor_api/collection/kaminari_support.rb', line 12

def limit_value
  per_page
end

#next_pageObject



8
9
10
# File 'lib/fidor_api/collection/kaminari_support.rb', line 8

def next_page
  current_page + 1
end