Sha256: 40344ab6b9b22f2e4ba5f3cf6f6dcd08b63d468d04e9bc7e68cc9bd758019260

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

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

module PageRankr
  class Socials
    class Twitter
      include Social

      def url
        'http://urls.api.twitter.com/1/urls/count.json'
      end

      def params
        {:url => tracked_url}
      end

      def jsonpath
        'count'
      end

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

      def name
        :socials_twitter
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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