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

- old
+ new

@@ -1,21 +1,15 @@ module Popularity class Pinterest < Crawler + stats :pins + def pins JSON.parse(response.gsub('receiveCount(','').gsub(')',''))['count'].to_f.to_i end - def as_json(options = {}) - {"pins" => pins} - end - - def total - pins - end - protected def request_url "http://api.pinterest.com/v1/urls/count.json?url=#{@url}" end end -end \ No newline at end of file +end