Sha256: 2a52095b8b9d4a400e18141554e147af445448a1308bcbb7a6f8fec827224ac3

Contents?: true

Size: 235 Bytes

Versions: 10

Compression:

Stored size: 235 Bytes

Contents

require 'uri'

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

10 entries across 10 versions & 1 rubygems

Version Path
PageRankr-4.6.1 lib/page_rankr/proxy_services/random.rb
PageRankr-4.6.0 lib/page_rankr/proxy_services/random.rb
PageRankr-4.4.1 lib/page_rankr/proxy_services/random.rb
PageRankr-4.4.0 lib/page_rankr/proxy_services/random.rb
PageRankr-4.3.0 lib/page_rankr/proxy_services/random.rb
PageRankr-4.2.1 lib/page_rankr/proxy_services/random.rb
PageRankr-4.2.0 lib/page_rankr/proxy_services/random.rb
PageRankr-4.1.1 lib/page_rankr/proxy_services/random.rb
PageRankr-4.1.0 lib/page_rankr/proxy_services/random.rb
PageRankr-4.0.0 lib/page_rankr/proxy_services/random.rb