class HttpCrawler::Proxy::Client

Public Class Methods

for(web_name, *arg) click to toggle source

接收格式 web_name = “test_proxy_api” 返回 HttpCrawler::Proxy::TestProxyApi::Client 实例

# File lib/http_crawler/proxy/client.rb, line 11
def for(web_name, *arg)
  "HttpCrawler::Proxy::#{web_name.camelize}::Client".constantize.new(*arg)
end

Public Instance Methods

max_error_num() click to toggle source
# File lib/http_crawler/proxy/client.rb, line 17
def max_error_num
  @max_error_num ||= 0
end