Class: HttpUtilities::Jobs::Resque::Proxies::CheckProxyJob
- Inherits:
-
Object
- Object
- HttpUtilities::Jobs::Resque::Proxies::CheckProxyJob
- Defined in:
- lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb
Class Method Summary collapse
Class Method Details
.perform(proxy_id) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/http_utilities/jobs/resque/proxies/check_proxy_job.rb', line 8 def self.perform(proxy_id) proxy_object = ::Proxy.where(id: proxy_id).first if (proxy_object) checker = HttpUtilities::Proxies::ProxyChecker.new checker.check_proxy(proxy_object) checker.update_proxies end end |