lib/popularity/networks/twitter.rb in popularity-0.1.1 vs lib/popularity/networks/twitter.rb in popularity-0.2.1

- old
+ new

@@ -1,21 +1,15 @@ module Popularity class Twitter < Crawler + stats :tweets + 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 \ No newline at end of file +end