Class: Navvy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/navvy/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_limitObject

Returns the value of attribute job_limit.



3
4
5
# File 'lib/navvy/configuration.rb', line 3

def job_limit
  @job_limit
end

#keep_jobsObject

Returns the value of attribute keep_jobs.



3
4
5
# File 'lib/navvy/configuration.rb', line 3

def keep_jobs
  @keep_jobs
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/navvy/configuration.rb', line 3

def logger
  @logger
end

#max_attemptsObject

Returns the value of attribute max_attempts.



3
4
5
# File 'lib/navvy/configuration.rb', line 3

def max_attempts
  @max_attempts
end

#sleep_timeObject

Returns the value of attribute sleep_time.



3
4
5
# File 'lib/navvy/configuration.rb', line 3

def sleep_time
  @sleep_time
end