Module: ConcurrentDownloader

Defined in:
lib/concurrent_downloader.rb,
lib/concurrent_downloader/version.rb,
lib/concurrent_downloader/response.rb,
lib/concurrent_downloader/processor.rb

Defined Under Namespace

Classes: ConnectionError, DownloadError, Processor, Response

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.loggerObject



16
17
18
# File 'lib/concurrent_downloader.rb', line 16

def logger
  @logger ||= Logger.new('/dev/null')
end

.logger=(logger) ⇒ Object



20
21
22
# File 'lib/concurrent_downloader.rb', line 20

def logger=(logger)
  @logger = logger
end

.process_queue!(queue, options = {}, &block) ⇒ Object



12
13
14
# File 'lib/concurrent_downloader.rb', line 12

def process_queue!(queue, options={}, &block)
  Processor.process_queue!(queue, options, &block)
end