Class: Isgd
Instance Method Summary collapse
Instance Method Details
#short(link) ⇒ Object
13 14 15 16 |
# File 'lib/urlshort.rb', line 13 def short(link) clnt = HTTPClient.new clnt.get('http://is.gd/api.php', {:longurl => link} ).content end |