module PayPal::SDK
Attributes
http_adapter_name[RW]
Public Class Methods
current_http_adapter()
click to toggle source
# File lib/paypal-sdk-http-adapters/configuration.rb, line 5 def current_http_adapter load_http_adapter(http_adapter_name) unless http_adapters.key?(http_adapter_name) http_adapters.fetch(http_adapter_name) end
load_http_adapter(name)
click to toggle source
# File lib/paypal-sdk-http-adapters/configuration.rb, line 10 def load_http_adapter(name) require "paypal-sdk/http_adapters/#{name}" end
register_http_adapter(name, klass)
click to toggle source
# File lib/paypal-sdk-http-adapters/configuration.rb, line 14 def register_http_adapter(name, klass) http_adapters[name] = klass end
Protected Class Methods
http_adapters()
click to toggle source
# File lib/paypal-sdk-http-adapters/configuration.rb, line 20 def http_adapters @http_adapters ||= {} end