Sha256: a48da57286ef4c812a5c0986eb30897d64cf48fb5695999ee2f6058d5079109e

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

require "clients/errors"
require "clients/proxy6_client"
require "clients/proxy_list_client"

module Clients
  class ProxyClient
    def self.from_env
      case ENV["CLIENTS_PROXY_CLIENT"]
      when "proxy6" then Proxy6Client.new
      when "list" then ProxyListClient.new
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scraper_clients-9.0.2 lib/clients/proxy_client.rb
scraper_clients-9.0.1 lib/clients/proxy_client.rb
scraper_clients-9.0.0 lib/clients/proxy_client.rb