Sha256: 3359c0a5e934aa31471da311033ab0c610fdaeb894f42ebb0963d49966283777

Contents?: true

Size: 481 Bytes

Versions: 4

Compression:

Stored size: 481 Bytes

Contents

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

module PageRankr
  class Socials
    class StumbleUpon
      include Social

      def url
        'http://www.stumbleupon.com/services/1.01/badge.getinfo'
      end

      def params
        {:url => tracked_url}
      end

      def jsonpath
        'result.views'
      end

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

      def name
        :socials_stumble_upon
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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