class RightHook::AuthenticatedClient

A base class for RightHook actors that interact with the GitHub API.

Attributes

client[R]

Public Class Methods

new(token) click to toggle source

Create a new client, authenticating with the given OAuth token.

# File lib/right_hook/authenticated_client.rb, line 7
def initialize(token)
  @client = Octokit::Client.new(access_token: token)
end