Sha256: 968c0f65522125c767c2a8ef873463bd83e4641a374e2d21cb4482cc8ab1e552
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module Payment module Manager module Request def self.get(url, params) uri = URI(url) uri.query = URI.encode_www_form(params) conn(uri).get(uri) end def self.conn(uri) http = Net::HTTP.new(uri.hostname, uri.port) http.use_ssl = uri.scheme == 'https' http end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
payment-manager-client-0.2.0 | lib/payment/manager/request.rb |
payment-manager-client-0.1.0 | lib/payment/manager/request.rb |