Sha256: 180005b68e989145218c7c8598bfd57f247e80b08a538e341e7fb90c42add5be

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

module HttpUtilities
  module Jobs
    module Sidekiq
      module Proxies
        class CheckProxiesJob
          include ::Sidekiq::Worker
          sidekiq_options :queue    =>  :proxies,
                          :unique   =>  false

          def perform(protocol = :all, proxy_type = :all, mode = :synchronous)
            HttpUtilities::Proxies::ProxyChecker.new.check_proxies(protocol.to_sym, proxy_type.to_sym, mode.to_sym)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
http_utilities-1.0.7.1 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
http_utilities-1.0.7 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
http_utilities-1.0.6 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
http_utilities-1.0.5 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
http_utilities-1.0.2 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb
http_utilities-1.0.1 lib/http_utilities/jobs/sidekiq/proxies/check_proxies_job.rb