Class: Typhoeus::Hydra

Inherits:
Object
  • Object
show all
Defined in:
lib/lazy_resource/ext/typhoeus.rb

Instance Method Summary collapse

Instance Method Details

#items_queued?Boolean

Returns:

  • (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_loggingObject 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