Module: FinchAPI::Type::BasePage
- Included in:
- IndividualsPage, Page, ResponsesPage, SinglePage
- Defined in:
- lib/finch-api/type/base_page.rb
Overview
Instance Method Summary collapse
- #auto_paging_each ⇒ void
- #initialize(client:, req:, headers:, page_data:) ⇒ Object private
- #next_page ⇒ FinchAPI::Type::BasePage
- #next_page? ⇒ Boolean
- #to_enum ⇒ Enumerable (also: #enum_for)
Instance Method Details
#auto_paging_each ⇒ void
This method returns an undefined value.
39 |
# File 'lib/finch-api/type/base_page.rb', line 39 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.
52 53 54 55 56 |
# File 'lib/finch-api/type/base_page.rb', line 52 def initialize(client:, req:, headers:, page_data:) @client = client @req = req super() end |
#next_page ⇒ FinchAPI::Type::BasePage
34 |
# File 'lib/finch-api/type/base_page.rb', line 34 def next_page = (raise NotImplementedError) |
#next_page? ⇒ Boolean
30 |
# File 'lib/finch-api/type/base_page.rb', line 30 def next_page? = (raise NotImplementedError) |
#to_enum ⇒ Enumerable Also known as: enum_for
42 |
# File 'lib/finch-api/type/base_page.rb', line 42 def to_enum = super(:auto_paging_each) |