Method: WscSdk::Pagination#next_page

Defined in:
lib/wsc_sdk/pagination.rb

#next_pageInteger, Nil

Get the number of the next page.

Returns:

  • (Integer)

    The number of the next page

  • (Nil)

    If there are no remaining pages



50
51
52
53
54
# File 'lib/wsc_sdk/pagination.rb', line 50

def next_page
  return nil if total_pages == -1
  return nil if page == total_pages
  return page + 1
end