Class: RightHook::AuthenticatedClient
- Inherits:
-
Object
- Object
- RightHook::AuthenticatedClient
- Defined in:
- lib/right_hook/authenticated_client.rb
Overview
A base class for RightHook actors that interact with the GitHub API.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(token) ⇒ AuthenticatedClient
constructor
Create a new client, authenticating with the given OAuth token.
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 |