Module: FinchAPI::BasePage
- Included in:
- IndividualsPage, Page, ResponsesPage, SinglePage
- Defined in:
- lib/finch-api/base_page.rb
Overview
Instance Method Summary collapse
- #auto_paging_each ⇒ void
- #initialize(client:, req:, headers:, page_data:) ⇒ Object private
- #next_page ⇒ FinchAPI::BasePage
- #next_page? ⇒ Boolean
- #to_enum ⇒ Enumerable (also: #enum_for)
Instance Method Details
#auto_paging_each ⇒ void
This method returns an undefined value.
38 |
# File 'lib/finch-api/base_page.rb', line 38 def auto_paging_each(&) = (raise NotImplementedError) |
#initialize(client:, req:, headers:, page_data:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 54 55 |
# File 'lib/finch-api/base_page.rb', line 51 def initialize(client:, req:, headers:, page_data:) @client = client @req = req super() end |
#next_page ⇒ FinchAPI::BasePage
33 |
# File 'lib/finch-api/base_page.rb', line 33 def next_page = (raise NotImplementedError) |
#next_page? ⇒ Boolean
29 |
# File 'lib/finch-api/base_page.rb', line 29 def next_page? = (raise NotImplementedError) |
#to_enum ⇒ Enumerable Also known as: enum_for
41 |
# File 'lib/finch-api/base_page.rb', line 41 def to_enum = super(:auto_paging_each) |