Sha256: aee828d0f9fc92ba70dcab86e80361b35d2a67abf7e80ccdbff493b8441fa7a3

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

require File.expand_path('../../rank', __FILE__)

module PageRankr
  class Ranks
    class DomainAuthority
      include Rank

      def url
        'https://moz.com/researchtools/ose/api/urlmetrics'
      end

      def params
        {:site => tracked_url}
      end

      def jsonpath
        'data.authority.domain_authority'
      end

      def supported_components
        [:subdomain, :path, :query]
      end

      def name
        :ranks_domain_authority
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-4.6.1 lib/page_rankr/ranks/domain_authority.rb
PageRankr-4.6.0 lib/page_rankr/ranks/domain_authority.rb