Sha256: 6f516b73d4905ec9e031c39083409215bc5630ef0c44f67e9bb01c6824f41a6f

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

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

module PageRankr
  class Socials
    class Google
      include Social

      def url
        # Yandex supplies Google +1 counts in a convenient matter without need for an API key
        'http://share.yandex.ru/gpp.xml'
      end

      def params
        {:url => tracked_url}
      end

      def regex
        /(\d+)/
      end

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

      def name
        :socials_google
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
PageRankr-4.6.1 lib/page_rankr/socials/google.rb
PageRankr-4.6.0 lib/page_rankr/socials/google.rb
PageRankr-4.4.1 lib/page_rankr/socials/google.rb
PageRankr-4.4.0 lib/page_rankr/socials/google.rb