Sha256: daa26b3877349cee1879b3beac276c4b6a99c8717dd455d5018ef18a5ad3b9a0

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'typhoeus'
require 'nokogiri'

module PageRankr
  class Ranks
    class AlexaGlobal
      include Rank
      
      def xpath
        "//popularity/@text"
      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_global.rb