mark-rushakoff/captain_hook

View on GitHub
lib/right_hook/authenticated_client.rb

Summary

Maintainability
A
0 mins
Test Coverage
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