Class: PairingMatrix::Config
- Inherits:
-
Object
- Object
- PairingMatrix::Config
- Defined in:
- lib/pairing_matrix/config/config.rb
Instance Attribute Summary collapse
-
#authors_regex ⇒ Object
readonly
Returns the value of attribute authors_regex.
-
#github_access_token ⇒ Object
readonly
Returns the value of attribute github_access_token.
-
#github_repos ⇒ Object
readonly
Returns the value of attribute github_repos.
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
Instance Method Summary collapse
- #fetch_from_github? ⇒ Boolean
- #has_github_access_token? ⇒ Boolean
-
#initialize(repos, authors_regex, github_access_token, github_repos) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(repos, authors_regex, github_access_token, github_repos) ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 |
# File 'lib/pairing_matrix/config/config.rb', line 5 def initialize(repos, , github_access_token, github_repos) @repos = repos @authors_regex = @github_access_token = github_access_token @github_repos = github_repos end |
Instance Attribute Details
#authors_regex ⇒ Object (readonly)
Returns the value of attribute authors_regex.
3 4 5 |
# File 'lib/pairing_matrix/config/config.rb', line 3 def @authors_regex end |
#github_access_token ⇒ Object (readonly)
Returns the value of attribute github_access_token.
3 4 5 |
# File 'lib/pairing_matrix/config/config.rb', line 3 def github_access_token @github_access_token end |
#github_repos ⇒ Object (readonly)
Returns the value of attribute github_repos.
3 4 5 |
# File 'lib/pairing_matrix/config/config.rb', line 3 def github_repos @github_repos end |
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
3 4 5 |
# File 'lib/pairing_matrix/config/config.rb', line 3 def repos @repos end |
Instance Method Details
#fetch_from_github? ⇒ Boolean
12 13 14 |
# File 'lib/pairing_matrix/config/config.rb', line 12 def fetch_from_github? !@github_repos.nil? && !@github_repos.empty? end |
#has_github_access_token? ⇒ Boolean
16 17 18 |
# File 'lib/pairing_matrix/config/config.rb', line 16 def has_github_access_token? !@github_access_token.nil? && !@github_access_token.empty? end |