Sha256: 8e7b2046afc6400d04e2e444c757b4dd8c002f1ec950bbb6287b1f91bc8b5641

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

module PageRankr
  module ProxyServices
    class Random
      def initialize(proxies)
        @proxies = proxies
      end

      def proxy(name, site)
        @proxies[rand(@proxies.length)]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-3.2.1 lib/page_rankr/proxy_services/random.rb
PageRankr-3.2.0 lib/page_rankr/proxy_services/random.rb