Class: Shortie::Shorteners::Snipurl
- Inherits:
-
BaseShortener
- Object
- BaseShortener
- Shortie::Shorteners::Snipurl
- Defined in:
- lib/shortie/shorteners/snipurl.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 7 8 9 10 11 |
# File 'lib/shortie/shorteners/snipurl.rb', line 4 def shorten SimpleHttp.post("http://snipurl.com/site/getsnip", { "sniplink" => url, "snipuser" => "lassebunk", "snipapi" => "55656c5bbaf92f859aa657be1482fc3a", "snipformat" => "simple" }) end |