Method: TableauRestApi::Pagination#retrieve_additional_pages
- Defined in:
- lib/tableau_rest_api/util/pagination.rb
#retrieve_additional_pages(response, collection, endpoint, extract) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/tableau_rest_api/util/pagination.rb', line 32 def retrieve_additional_pages(response, collection, endpoint, extract) until complete?(response) do response = (get build_url(endpoint, next_page)) collection = collection + extract.call(response) end collection end |