Class: KExt::Github::Configuration
- Inherits:
-
Object
- Object
- KExt::Github::Configuration
- Includes:
- KUtil::Data::InstanceVariablesToH
- Defined in:
- lib/k_ext/github/configuration.rb
Overview
Configuration class for KExt::Github
Instance Attribute Summary collapse
-
#personal_access_token ⇒ Object
Returns the value of attribute personal_access_token.
-
#personal_access_token_delete ⇒ Object
Returns the value of attribute personal_access_token_delete.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/k_ext/github/configuration.rb', line 13 def initialize @user = ENV.fetch('GH_USER') { ENV.fetch('GITHUB_USER', nil) } @personal_access_token = ENV.fetch('GITHUB_PERSONAL_ACCESS_TOKEN', nil) @personal_access_token_delete = ENV.fetch('GITHUB_PERSONAL_ACCESS_TOKEN_DELETE', nil) end |
Instance Attribute Details
#personal_access_token ⇒ Object
Returns the value of attribute personal_access_token.
10 11 12 |
# File 'lib/k_ext/github/configuration.rb', line 10 def personal_access_token @personal_access_token end |
#personal_access_token_delete ⇒ Object
Returns the value of attribute personal_access_token_delete.
11 12 13 |
# File 'lib/k_ext/github/configuration.rb', line 11 def personal_access_token_delete @personal_access_token_delete end |
#user ⇒ Object
Returns the value of attribute user.
9 10 11 |
# File 'lib/k_ext/github/configuration.rb', line 9 def user @user end |