Class: IsgdExpander
- Inherits:
-
Object
- Object
- IsgdExpander
- Defined in:
- lib/uncoil/expanders/isgd_expander.rb
Constant Summary collapse
- ISGD_ROOT_URL =
"http://is.gd/forward.php?format=json&shorturl="
Class Method Summary collapse
Class Method Details
.expand(short_url) ⇒ Object
8 9 10 11 |
# File 'lib/uncoil/expanders/isgd_expander.rb', line 8 def (short_url) response = Typhoeus.get("#{ISGD_ROOT_URL}#{short_url}") isgd_location_from_response(response.response_body) end |