Class: RightHook::AuthenticatedClient

Inherits:
Object
  • Object
show all
Defined in:
lib/right_hook/authenticated_client.rb

Overview

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

Direct Known Subclasses

Commenter

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ AuthenticatedClient

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



7
8
9
# File 'lib/right_hook/authenticated_client.rb', line 7

def initialize(token)
  @client = Octokit::Client.new(access_token: token)
end