Module: Github::Api::Auth
- Included in:
- Klass
- Defined in:
- lib/github/api/auth.rb,
lib/github/api/auth/auth.rb,
lib/github/api/auth/version.rb
Defined Under Namespace
Classes: Klass
Constant Summary collapse
- AUTH_FILE =
"#{ENV['HOME']}/.github_token"- AUTH_LOCAL_FILE =
".github_token"- SCOPES =
"repo:status"- VERSION =
"0.2.0"
Instance Attribute Summary collapse
-
#github ⇒ Object
Returns the value of attribute github.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#github ⇒ Object
Returns the value of attribute github.
12 13 14 |
# File 'lib/github/api/auth/auth.rb', line 12 def github @github end |
#scopes ⇒ Object
Returns the value of attribute scopes.
12 13 14 |
# File 'lib/github/api/auth/auth.rb', line 12 def scopes @scopes end |
Class Method Details
Instance Method Details
#initialize(scopes: []) ⇒ Object
18 19 20 21 |
# File 'lib/github/api/auth/auth.rb', line 18 def initialize(scopes: []) @scopes = scopes authenticate end |