Class: Net::HTTPS

Inherits:
HTTP
  • Object
show all
Defined in:
lib/ruby-paypal/paypal.rb

Overview

A convenience class to enable this library to call PayPal’s HTTPS NVP APIs

Instance Method Summary collapse

Constructor Details

#initialize(address, port = nil, verify = :no_verify) ⇒ HTTPS

Returns a new instance of HTTPS.



16
17
18
19
20
# File 'lib/ruby-paypal/paypal.rb', line 16

def initialize(address, port = nil, verify = :no_verify)
  super(address, port)
  self.use_ssl = true
  self.verify_mode = OpenSSL::SSL::VERIFY_NONE if verify == :no_verify
end