lib/page_rankr/backlinks/backlink.rb in PageRankr-1.3.0 vs lib/page_rankr/backlinks/backlink.rb in PageRankr-1.4.0
- old
+ new
@@ -1,11 +1,12 @@
require 'nokogiri'
require 'open-uri'
module PageRankr
- class Backlinks
+ class Backlinks < Tracker
class Backlink
attr_reader :backlinks
+ alias_method :tracked, :backlinks
def initialize(site)
@backlinks = clean Nokogiri::HTML(open url(site)).at(xpath).to_s
end
\ No newline at end of file