Class: Razsell::HttpService
- Inherits:
-
Object
- Object
- Razsell::HttpService
- Defined in:
- lib/razsell/http_service.rb
Overview
Class that wraps http calls
Instance Method Summary collapse
Instance Method Details
#get(query) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/razsell/http_service.rb', line 6 def get query if query.class == String url = query else url = query.to_url end open(url) end |