Sha256: db49fa3f8e3066e8e4b50a2b01a14b3b41724a6376ab23e0ec6bca1d7a972e06

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 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

    def ranks(site, *rank_trackers)
      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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-1.1.0 lib/page_rankr.rb
PageRankr-1.0.0 lib/page_rankr.rb