Class: Cuenote::Api::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/cuenote/api/connection.rb

Instance Method Summary collapse

Instance Method Details

#send(req) ⇒ Object



3
4
5
6
7
8
# File 'lib/cuenote/api/connection.rb', line 3

def send(req)
  response = Net::HTTP.start uri.hostname, uri.port, use_ssl: (uri.scheme == 'https') do |http|
    http.request req
  end
  Response.new response
end