Sha256: 46571de6d26239a30960438cd59b2eb8cd17fb68d9d3549d483a151db8a56b61
Contents?: true
Size: 445 Bytes
Versions: 5
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true module RakutenWebService class AllProxy include Enumerable def initialize(search_result) @search_result = search_result end def each search_result = @search_result loop do search_result.each do |resource| yield resource end break unless search_result.has_next_page? search_result = search_result.next_page end end end end
Version data entries
5 entries across 5 versions & 1 rubygems