| Class | ShortURL |
| In: |
lib/shorturl.rb
|
| Parent: | Object |
Main method of ShortURL, its usage is quite simple, just give an url to shorten and an optional service. If no service is selected, RubyURL.com will be used. An invalid service symbol will raise an ArgumentError exception
Valid service values:
call-seq:
ShortURL.shorten("http://mypage.com") => Uses RubyURL
ShortURL.shorten("http://mypage.com", :tinyurl)