Sha256: d845fbf2d9e88d78127c45211f175ef1d5d010ed2335aef5655ddefba8a5538e

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require "zeitwerk"
require "retries"
require "proxy_fetcher"
require "user_agent_randomizer"

Zeitwerk::Loader.for_gem.setup

module ActiveProxy
  class << self
    def call(proxy_key, cache_store, options = {})
      ActiveProxy::Fetcher.new(proxy_key, cache_store, options).send(:call) do |fetcher|
        yield fetcher
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_proxy-1.0.2 lib/active_proxy.rb
active_proxy-1.0.1 lib/active_proxy.rb
active_proxy-1.0.0 lib/active_proxy.rb