Class: Fetch::Backend::Typhoeus
- Defined in:
- lib/fetch/backend/typhoeus.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Fetch::Backend::Base
Instance Method Details
#run(&progress) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/fetch/backend/typhoeus.rb', line 4 def run(&progress) hydra = ::Typhoeus::Hydra.new build_requests(&progress).each do |request| hydra.queue(request) end hydra.run end |