class GithubCommit::CommitFetcher
Attributes
client[R]
repo[R]
Public Class Methods
new(repo:, client: Octokit::Client.new)
click to toggle source
# File lib/github_commit/commit_fetcher.rb, line 3 def initialize(repo:, client: Octokit::Client.new) @client = client @repo = repo end
Public Instance Methods
fetch_commit(sha:)
click to toggle source
# File lib/github_commit/commit_fetcher.rb, line 8 def fetch_commit(sha:) client.commit(repo, sha) end
fetch_status(sha:)
click to toggle source
# File lib/github_commit/commit_fetcher.rb, line 12 def fetch_status(sha:) client.status(repo, sha) end