Class: Threasy::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/threasy/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



6
7
8
# File 'lib/threasy/config.rb', line 6

def initialize
  self.max_workers = 5
end

Instance Attribute Details

#loggerObject



10
11
12
# File 'lib/threasy/config.rb', line 10

def logger
  @logger ||= Logger.new(STDOUT).tap{|l| l.level = Logger::INFO }
end

#max_workersObject

Returns the value of attribute max_workers.



3
4
5
# File 'lib/threasy/config.rb', line 3

def max_workers
  @max_workers
end

#scheduleObject

Returns the value of attribute schedule.



3
4
5
# File 'lib/threasy/config.rb', line 3

def schedule
  @schedule
end

#workObject

Returns the value of attribute work.



3
4
5
# File 'lib/threasy/config.rb', line 3

def work
  @work
end