Sha256: 2bd0892f0ae08cd8c27b951e079092a6812eeb1cefa04d46bd303df44e66ffb3

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

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

module PageRankr
  class Socials
    class Pinterest
      include Social

      def url
        'http://api.pinterest.com/v1/urls/count.json'
      end

      def params
        {:url => tracked_url, :callback => '_'}
      end

      def regex
        /(\d+)/
      end

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

      def name
        :socials_pinterest
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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