Class: Typhoeus::Hydra
- Inherits:
-
Object
- Object
- Typhoeus::Hydra
- Defined in:
- lib/lazy_resource/ext/typhoeus.rb
Instance Method Summary collapse
- #items_queued? ⇒ Boolean
- #run_with_logging ⇒ Object (also: #run)
Instance Method Details
#items_queued? ⇒ Boolean
3 4 5 |
# File 'lib/lazy_resource/ext/typhoeus.rb', line 3 def items_queued? @multi.items_queued? || self.queued_requests.size > 0 end |
#run_with_logging ⇒ Object Also known as: run
7 8 9 10 11 12 13 |
# File 'lib/lazy_resource/ext/typhoeus.rb', line 7 def run_with_logging if log? log { run_without_logging } else run_without_logging end end |