Class: Shortie::Shorteners::Tinyurl
- Inherits:
-
BaseShortener
- Object
- BaseShortener
- Shortie::Shorteners::Tinyurl
- Defined in:
- lib/shortie/shorteners/tinyurl.rb
Instance Attribute Summary
Attributes inherited from BaseShortener
Instance Method Summary collapse
Methods inherited from BaseShortener
Constructor Details
This class inherits a constructor from Shortie::BaseShortener
Instance Method Details
#shorten ⇒ Object
4 5 6 |
# File 'lib/shortie/shorteners/tinyurl.rb', line 4 def shorten SimpleHttp.get("http://tinyurl.com/api-create.php?url=#{escaped_url}") end |