Sha256: eb215cc9c7d6aa9b22b8689e63c9b3c879b00ecf1bd0e13e796dd5befc7bfc6c

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module Virility
	class Pinterest < Context
	
	  parser(
	    Proc.new do |body, format|
	      MultiJson.decode(body.scan(/({.+})/).flatten.first)
	    end
	  )
	
		def get_virility
			@response = self.class.get("http://api.pinterest.com/v1/urls/count.json?url=#{@url}")
			@counts = @response.parsed_response
		end
	
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
virility-0.0.1 lib/virility/strategies/pinterest.rb