Method: Ubi::Consultor::Base#request

Defined in:
lib/ubi/consultor.rb

#request(opts = {}) ⇒ Object

Make an HTTP(S) request to a geocoding API and return the response object.



31
32
33
34
35
36
37
# File 'lib/ubi/consultor.rb', line 31

def request(opts = {})
  timeout(10) do
    uri = URI.parse(query_url)
    puts "#{self} working on `#{@thema}` (#{query_url}) #{opts}"
    uri.open(HEADERS).read
  end
end