Class: MastercardCoreSdk::Core::ProxyConfig
- Inherits:
-
Object
- Object
- MastercardCoreSdk::Core::ProxyConfig
- Defined in:
- lib/mastercard_core_sdk/core/proxy_config.rb
Overview
Set proxy configurations for Typhoeus Request.
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Set Proxy options for MasterCardApiConfiguration.
-
#proxy ⇒ Object
Set uri scheme,hostname, port in proxy configuration.
-
#proxyuserpwd ⇒ Object
Set username, password for basic authentication in proxy.
Instance Method Summary collapse
-
#initialize ⇒ ProxyConfig
constructor
A new instance of ProxyConfig.
Constructor Details
#initialize ⇒ ProxyConfig
18 19 20 21 22 |
# File 'lib/mastercard_core_sdk/core/proxy_config.rb', line 18 def initialize @proxy = nil @proxyuserpwd = nil = {} end |
Instance Attribute Details
#options ⇒ Hash (readonly)
Set Proxy options for MasterCardApiConfiguration.
16 17 18 |
# File 'lib/mastercard_core_sdk/core/proxy_config.rb', line 16 def end |
#proxy ⇒ Object
Set uri scheme,hostname, port in proxy configuration
8 9 10 |
# File 'lib/mastercard_core_sdk/core/proxy_config.rb', line 8 def proxy @proxy end |
#proxyuserpwd ⇒ Object
Set username, password for basic authentication in proxy
12 13 14 |
# File 'lib/mastercard_core_sdk/core/proxy_config.rb', line 12 def proxyuserpwd @proxyuserpwd end |