Class: Contribute::Client
- Inherits:
-
Object
- Object
- Contribute::Client
- Defined in:
- lib/contribute/client.rb
Overview
Class to find repos with stars
Instance Attribute Summary collapse
-
#octokit ⇒ Object
readonly
Returns the value of attribute octokit.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 |
# File 'lib/contribute/client.rb', line 7 def initialize token_file = YAML.load_file(File.('../../.token.yml', __dir__)) token = token_file['token'] @octokit = Octokit::Client.new access_token: token end |
Instance Attribute Details
#octokit ⇒ Object (readonly)
Returns the value of attribute octokit.
5 6 7 |
# File 'lib/contribute/client.rb', line 5 def octokit @octokit end |