Module: Tankard::Api::Utils::PageFinders

Includes:
Enumerable, Request::Get
Included in:
Beer, Beers, Search, Style, Styles
Defined in:
lib/tankard/api/utils/page_finders.rb

Instance Method Summary collapse

Instance Method Details

#each {|hash| ... } ⇒ Object

Loads data from brewerydb and calls supplied block with resulting data

Yield Parameters:

  • hash (Hash)

    containing individual beer information



13
14
15
# File 'lib/tankard/api/utils/page_finders.rb', line 13

def each(&block)
  find_on_single_or_all_pages(http_request_uri, http_client, http_request_parameters, block)
end