lib/gocardless/paginator.rb
# Fetch and yield each page of results.
Fetch and yield each page of results.
Fetch and yield each page of results .
def each_page
      page_obj = load_page(1)
      loop do
        yield page_obj
        break unless page_obj.has_next?
        page_obj = load_page(page_obj.next_page)
      end
    end
def each_page page_obj = load_page ( 1 ) loop do yield page_obj break unless page_obj . has_next? page_obj = load_page ( page_obj . next_page ) end end
Fetch and yield each page of results.
Fetch and yield each page of results .