lib/page_rankr/ranks/google.rb in PageRankr-3.0.2 vs lib/page_rankr/ranks/google.rb in PageRankr-3.1.0
- old
+ new
@@ -5,20 +5,25 @@
class Ranks
class Google
include Rank
def initialize(site)
- @checksum = Checksum.generate('info:' + site.to_s)
+ @site = PageRankr::Site(site)
+ @checksum = Checksum.generate("info:#{tracked_url}")
super(site)
end
+ def supported_components
+ [:subdomain, :path]
+ end
+
def url
"http://toolbarqueries.google.com/tbr"
end
def params
- {:client => "navclient-auto", :ch => @checksum, :features => "Rank", :q => "info:#{@site.to_s}"}
+ {:client => "navclient-auto", :ch => @checksum, :features => "Rank", :q => "info:#{tracked_url}"}
end
def regex
/Rank_\d+:\d+:(\d+)/
end