Module: Tankard::Api::Utils::PageFinders
- Includes:
- Enumerable, Request::Get
- Defined in:
- lib/tankard/api/utils/page_finders.rb
Overview
Seamless querying of multiple pages of results Allows using any ruby enumerable (EX. map)
Instance Method Summary collapse
-
#each {|hash| ... } ⇒ Object
Loads data from brewerydb and calls supplied block with resulting data.
Instance Method Details
#each {|hash| ... } ⇒ Object
Loads data from brewerydb and calls supplied block with resulting data
17 18 19 |
# File 'lib/tankard/api/utils/page_finders.rb', line 17 def each(&block) find_on_single_or_all_pages(http_request_parameters, block) end |