Class: KExt::Github::Configuration

Inherits:
Object
  • Object
show all
Includes:
KUtil::Data::InstanceVariablesToH
Defined in:
lib/k_ext/github/configuration.rb

Overview

Configuration class for KExt::Github

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_deleteObject

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

#userObject

Returns the value of attribute user.



9
10
11
# File 'lib/k_ext/github/configuration.rb', line 9

def user
  @user
end