module OneDriveForBusiness::Util

Public Instance Methods

http(uri) click to toggle source

@param String|URI @return Net::HTTP

# File lib/onedrive_for_business/util.rb, line 5
def http(uri)
  uri = URI(uri.to_s)
  http = Net::HTTP.new(uri.hostname, uri.port)
  http.use_ssl = true
  http
end