Sha256: 4144aef741f60fe74372ae089dd342f3a5045ef4d110483acc964d2deb6aa564
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
module Popularity class Twitter < Crawler def tweets response_json['count'].to_i if has_response? end def total tweets end def as_json(options = {}) {"tweets" => tweets} end protected def request_url "https://cdn.api.twitter.com/1/urls/count.json?url=#{@url}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
popularity-0.1.1 | lib/popularity/networks/twitter.rb |
popularity-0.1.0 | lib/popularity/networks/twitter.rb |
popularity-0.0.1 | lib/popularity/twitter.rb |