Sha256: 66aacdc510811e485e04fe6e1083eaad6a8d197b5d296ec7834950fdfcf79d7c
Contents?: true
Size: 490 Bytes
Versions: 54
Compression:
Stored size: 490 Bytes
Contents
module Shipit class OctokitIterator include Enumerable def initialize(relation = nil) if relation @response = relation.get(per_page: 100) else yield Shipit.github_api @response = Shipit.github_api.last_response end end def each(&block) response = @response loop do response.data.each(&block) return unless response.rels[:next] response = response.rels[:next].get end end end end
Version data entries
54 entries across 54 versions & 1 rubygems