Class: ExUA::ExUAFetcher
- Inherits:
-
Object
- Object
- ExUA::ExUAFetcher
- Includes:
- HTTParty
- Defined in:
- lib/ex_ua/client.rb
Overview
Client for ExUA
Class Method Summary collapse
Class Method Details
.get_redirect(uri) ⇒ Object
15 16 17 18 19 |
# File 'lib/ex_ua/client.rb', line 15 def self.get_redirect(uri) get Addressable::URI.parse(uri).normalize.to_s rescue HTTParty::RedirectionTooDeep => e e.response["location"] end |