Module: HttpCrawler::Proxy

Defined in:
lib/http_crawler/proxy.rb,
lib/http_crawler/proxy/client.rb,
lib/http_crawler/proxy/response.rb,
lib/http_crawler/proxy/test_proxy_api/client.rb,
lib/http_crawler/proxy/test_proxy_api/response.rb,
lib/http_crawler/proxy/test_proxy_api/response/get_proxy.rb

Defined Under Namespace

Modules: Response, TestProxyApi Classes: Client

Class Method Summary collapse

Class Method Details

.for(web_name, *arg) ⇒ Object

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



9
10
11
# File 'lib/http_crawler/proxy.rb', line 9

def for(web_name, *arg)
  "HttpCrawler::Proxy::#{web_name.camelize}::Client".constantize.new(*arg)
end