Class: BikePOA::HttpClient
- Inherits:
-
Object
- Object
- BikePOA::HttpClient
- Defined in:
- lib/bikepoa/http_client.rb
Instance Method Summary collapse
Instance Method Details
#fetch ⇒ Object
7 8 9 10 |
# File 'lib/bikepoa/http_client.rb', line 7 def fetch location = BikePOA.config['bikepoa:uri'] || DEFAULT_URI Net::HTTP.get URI(location) end |