Sha256: 5978216a7fbd58942ddfc1b3d808e2544c82fa59bb00520b4284f890acaf8eae

Contents?: true

Size: 218 Bytes

Versions: 5

Compression:

Stored size: 218 Bytes

Contents

module Virility
  class Twitter < Strategy
  
    def census
      self.class.get("http://urls.api.twitter.com/1/urls/count.json?url=#{@url}")
    end
    
    def count
      results["count"] || 0
    end
  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
virility-0.2.0 lib/virility/strategies/twitter.rb
virility-0.1.4 lib/virility/strategies/twitter.rb
virility-0.1.3 lib/virility/strategies/twitter.rb
virility-0.1.2 lib/virility/strategies/twitter.rb
virility-0.1.1 lib/virility/strategies/twitter.rb