Sha256: f7314b55709f539fb6becb613eb3e7981b41578e94254126eec44813f4c9c4f4
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
module Popularity class Pinterest < Crawler stats :pins def pins JSON.parse(response.gsub('receiveCount(','').gsub(')',''))['count'].to_f.to_i end protected def request_url "http://api.pinterest.com/v1/urls/count.json?url=#{@url}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
popularity-0.3.0 | lib/popularity/networks/pinterest.rb |
popularity-0.2.1 | lib/popularity/networks/pinterest.rb |