Class: BikePOA::HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/bikepoa/http_client.rb

Instance Method Summary collapse

Instance Method Details

#fetchObject



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