Sha256: 196a3de645425669246e2e42313bdb1132d8ce4aa3e4e620748090794098145f
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
module Shorty # The tinyurl.com API. Not much here, undocumented API class Tinyurl include HTTParty def shorten(url) self.class.get('http://tinyurl.com/api-create.php', :query => {:url => url}) end def self.shorten(url) get('http://tinyurl.com/api-create.php', :query => {:url => url}) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
drcapulet-shorty-0.1.0 | lib/shorty/tinyurl.rb |
drcapulet-shorty-0.1.1 | lib/shorty/tinyurl.rb |
shorty-0.1.1 | lib/shorty/tinyurl.rb |