Class: PageRankr::Ranks::Compete

Inherits:
Object
  • Object
show all
Includes:
PageRankr::Rank
Defined in:
lib/page_rankr/ranks/compete.rb

Instance Attribute Summary

Attributes included from Tracker

#body, #raw, #tracked

Instance Method Summary collapse

Methods included from Tracker

#clean, #content, #initialize, #method, #request, #run, #supported_components, #tracked_url

Instance Method Details

#urlObject



9
10
11
# File 'lib/page_rankr/ranks/compete.rb', line 9

def url
  "http://siteanalytics.compete.com/#{CGI.escape(@site.domain)}/"
end

#xpathObject



13
14
15
# File 'lib/page_rankr/ranks/compete.rb', line 13

def xpath
  "//div[@class='section score']/h4[2]/text()"
end