Class: Navvy::Configuration
- Inherits:
-
Object
- Object
- Navvy::Configuration
- Defined in:
- lib/navvy/configuration.rb
Instance Attribute Summary collapse
-
#job_limit ⇒ Object
Returns the value of attribute job_limit.
-
#keep_jobs ⇒ Object
Returns the value of attribute keep_jobs.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
-
#sleep_time ⇒ Object
Returns the value of attribute sleep_time.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/navvy/configuration.rb', line 5 def initialize @job_limit = 100 @keep_jobs = false @logger = Navvy::Logger.new @sleep_time = 5 @max_attempts = 25 end |
Instance Attribute Details
#job_limit ⇒ Object
Returns the value of attribute job_limit.
3 4 5 |
# File 'lib/navvy/configuration.rb', line 3 def job_limit @job_limit end |
#keep_jobs ⇒ Object
Returns the value of attribute keep_jobs.
3 4 5 |
# File 'lib/navvy/configuration.rb', line 3 def keep_jobs @keep_jobs end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/navvy/configuration.rb', line 3 def logger @logger end |
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
3 4 5 |
# File 'lib/navvy/configuration.rb', line 3 def max_attempts @max_attempts end |
#sleep_time ⇒ Object
Returns the value of attribute sleep_time.
3 4 5 |
# File 'lib/navvy/configuration.rb', line 3 def sleep_time @sleep_time end |