class ReadingLogExtractor::GithubFacade
Attributes
gh_connection[R]
Public Class Methods
new(gh_connection:)
click to toggle source
# File lib/reading_log_extractor/github_facade.rb, line 5 def initialize(gh_connection:) @gh_connection = gh_connection end
Public Instance Methods
commits(username, repo)
click to toggle source
# File lib/reading_log_extractor/github_facade.rb, line 13 def commits(username, repo) gh_connection .repos .commits .list(username, repo) end
content_between(username, reponame, sha1, sha2)
click to toggle source
# File lib/reading_log_extractor/github_facade.rb, line 20 def content_between(username, reponame, sha1, sha2) gh_connection .repos .commits .compare(username, reponame, sha1, sha2) end
repo_list(username)
click to toggle source
# File lib/reading_log_extractor/github_facade.rb, line 9 def repo_list(username) gh_connection.repos.list(user: username) end