lib/contentful/sync.rb
def each_page
      page = first_page
      yield page if block_given?

      until completed?
        page = page.next_page
        yield page if block_given?
      end
    end
def each_page
      page = first_page
      yield page if block_given?

      until completed?
        page = page.next_page
        yield page if block_given?
      end
    end
def each_page page = first_page yield page if block_given? until completed? page = page . next_page yield page if block_given? end end
Iterates over all pages of the current sync

 @note Please Keep in Mind: Iterating fires a new request for each page

 @yield [Contentful::SyncPage]
Iterates over all pages of the current sync