Sha256: b23c9ebb6c7b6317e6c745211e1c1567e37a55cc743ac9feb935ea811004c026

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

require 'typhoeus'
require 'nokogiri'

module PageRankr
  class Ranks
    class AlexaUs
      include Rank
      
      def xpath
        "//reach/@rank"
      end
      
      def request
         @request ||= Typhoeus::Request.new("http://data.alexa.com/data",
              :params => {:cli => 10, :dat => "snbamz", :url => @site.to_s})
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
PageRankr-2.0.0 lib/page_rankr/ranks/alexa_us.rb