class GithubAPI

Constants

GITHUB_API_URL

Public Instance Methods

repos(user:) click to toggle source
# File lib/github_api.rb, line 6
def repos(user:)
  repos = JsonApiClient.fetch_all_pages(url: GITHUB_API_URL + "/users/#{user}/repos")
  repos.select{ |repo| repo["owner"]["login"] == user } unless repos.nil?
end