Class: Mush::Services::IsGd
- Inherits:
-
Mush::Service
- Object
- Mush::Service
- Mush::Services::IsGd
- Defined in:
- lib/mush/services/isgd.rb
Instance Method Summary collapse
Methods inherited from Mush::Service
Instance Method Details
#shorten(url) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/mush/services/isgd.rb', line 8 def shorten(url) raise InvalidURI.new("Please provide a valid URI") if url.empty? = {} [:query] = {:longurl => url} get('/api.php', ).body.chomp end |