Sha256: 6c69bcf619dc3547c5afd2a17ea0f17b5f484a28fb4d297f1905a20dee5462e9

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

require File.expand_path('../../index', __FILE__)

module PageRankr
  class Indexes
    class Google
      include Index
      
      def url
        "http://www.google.com/search"
      end

      def params
        {:q => "site:#{@site.to_s}"}
      end

      def xpath
        "//div[@id='resultStats']/text()"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
PageRankr-3.0.2 lib/page_rankr/indexes/google.rb
PageRankr-3.0.1 lib/page_rankr/indexes/google.rb
PageRankr-3.0.0 lib/page_rankr/indexes/google.rb