class Prawntocat::Issues
Public Class Methods
new(repo)
click to toggle source
# File lib/prawntocat/issues.rb, line 7 def initialize repo @repo = repo end
Public Instance Methods
client()
click to toggle source
# File lib/prawntocat/issues.rb, line 11 def client @client ||= Prawntocat.client end
each() { |hash| ... }
click to toggle source
# File lib/prawntocat/issues.rb, line 15 def each page = 1 loop do issues = client.list_issues(@repo, page: page) break if issues.empty? page += 1 issues.each { |hash| yield hash } end end