Class: BugCourier::Configuration
- Inherits:
-
Object
- Object
- BugCourier::Configuration
- Defined in:
- lib/bug_courier/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#assignees ⇒ Object
Returns the value of attribute assignees.
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#deduplicate ⇒ Object
Returns the value of attribute deduplicate.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#ignore_exceptions ⇒ Object
Returns the value of attribute ignore_exceptions.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#rate_limit ⇒ Object
Returns the value of attribute rate_limit.
-
#repo ⇒ Object
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bug_courier/configuration.rb', line 8 def initialize @access_token = nil @repo = nil @labels = ["bug", "bug_courier"] @assignees = [] @enabled = true @deduplicate = true @rate_limit = 10 # max issues per hour @callback = nil @ignore_exceptions = [] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def access_token @access_token end |
#assignees ⇒ Object
Returns the value of attribute assignees.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def assignees @assignees end |
#callback ⇒ Object
Returns the value of attribute callback.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def callback @callback end |
#deduplicate ⇒ Object
Returns the value of attribute deduplicate.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def deduplicate @deduplicate end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def enabled @enabled end |
#ignore_exceptions ⇒ Object
Returns the value of attribute ignore_exceptions.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def ignore_exceptions @ignore_exceptions end |
#labels ⇒ Object
Returns the value of attribute labels.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def labels @labels end |
#rate_limit ⇒ Object
Returns the value of attribute rate_limit.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def rate_limit @rate_limit end |
#repo ⇒ Object
Returns the value of attribute repo.
5 6 7 |
# File 'lib/bug_courier/configuration.rb', line 5 def repo @repo end |
Instance Method Details
#valid? ⇒ Boolean
20 21 22 |
# File 'lib/bug_courier/configuration.rb', line 20 def valid? !!(access_token && !access_token.empty? && repo && !repo.empty?) end |