lib/right_hook/authenticated_client.rb
require 'octokit'
module RightHook
# A base class for RightHook actors that interact with the GitHub API.
class AuthenticatedClient
# Create a new client, authenticating with the given OAuth token.
def initialize(token)
@client = Octokit::Client.new(access_token: token)
end
private
attr_reader :client
end
end