Sha256: 3c2a961b96c28866d44d91c69f229a546d99c23ab97a9506cfb039793f933794
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
path = File.expand_path(File.dirname(__FILE__)) + '/page_rankr/' require path + 'backlinks' require path + 'alexa' require path + 'google' module PageRankr class << self def backlinks(site, *search_engines) Backlinks.lookup site, *search_engines end alias_method :backlink, :backlinks def ranks(site, *rank_trackers) rank_trackers = [:google, :alexa] if rank_trackers.empty? ranks = {} rank_trackers.each do |tracker| case tracker when :google ranks[tracker] = Google.lookup(site) when :alexa ranks[tracker] = Alexa.lookup(site) end end ranks end alias_method :rank, :ranks end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
PageRankr-1.2.0 | lib/page_rankr.rb |