Class: MangoPay::Configuration
- Inherits:
-
Object
- Object
- MangoPay::Configuration
- Defined in:
- lib/mangopay.rb
Instance Attribute Summary collapse
-
#after_request_proc ⇒ Object
Returns the value of attribute after_request_proc.
-
#client_apiKey ⇒ Object
Returns the value of attribute client_apiKey.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#http_max_retries ⇒ Object
Returns the value of attribute http_max_retries.
-
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
-
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
-
#log_file ⇒ Object
Returns the value of attribute log_file.
-
#log_trace_headers ⇒ Object
Returns the value of attribute log_trace_headers.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#mtls_cert ⇒ Object
Returns the value of attribute mtls_cert.
-
#mtls_key ⇒ Object
Returns the value of attribute mtls_key.
-
#mtls_key_passphrase ⇒ Object
Returns the value of attribute mtls_key_passphrase.
-
#preproduction ⇒ Object
Returns the value of attribute preproduction.
-
#root_url ⇒ Object
Returns the value of attribute root_url.
-
#temp_dir ⇒ Object
Returns the value of attribute temp_dir.
-
#uk_header_flag ⇒ Object
Returns the value of attribute uk_header_flag.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
Instance Attribute Details
#after_request_proc ⇒ Object
Returns the value of attribute after_request_proc.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def after_request_proc @after_request_proc end |
#client_apiKey ⇒ Object
Returns the value of attribute client_apiKey.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def client_apiKey @client_apiKey end |
#client_id ⇒ Object
Returns the value of attribute client_id.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def client_id @client_id end |
#http_max_retries ⇒ Object
Returns the value of attribute http_max_retries.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def http_max_retries @http_max_retries end |
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def http_open_timeout @http_open_timeout end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def http_timeout @http_timeout end |
#log_file ⇒ Object
Returns the value of attribute log_file.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def log_file @log_file end |
#log_trace_headers ⇒ Object
Returns the value of attribute log_trace_headers.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def log_trace_headers @log_trace_headers end |
#logger ⇒ Object
Returns the value of attribute logger.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def logger @logger end |
#mtls_cert ⇒ Object
Returns the value of attribute mtls_cert.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def mtls_cert @mtls_cert end |
#mtls_key ⇒ Object
Returns the value of attribute mtls_key.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def mtls_key @mtls_key end |
#mtls_key_passphrase ⇒ Object
Returns the value of attribute mtls_key_passphrase.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def mtls_key_passphrase @mtls_key_passphrase end |
#preproduction ⇒ Object
Returns the value of attribute preproduction.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def preproduction @preproduction end |
#root_url ⇒ Object
Returns the value of attribute root_url.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def root_url @root_url end |
#temp_dir ⇒ Object
Returns the value of attribute temp_dir.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def temp_dir @temp_dir end |
#uk_header_flag ⇒ Object
Returns the value of attribute uk_header_flag.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def uk_header_flag @uk_header_flag end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
67 68 69 |
# File 'lib/mangopay.rb', line 67 def use_ssl @use_ssl end |
Instance Method Details
#apply_configuration ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/mangopay.rb', line 75 def apply_configuration MangoPay.configure do |config| config.preproduction = @preproduction config.client_id = @client_id config.client_apiKey = @client_apiKey config.log_file = @log_file config.log_trace_headers = @log_trace_headers config.http_timeout = @http_timeout config.http_max_retries = @http_max_retries config.http_open_timeout = @http_open_timeout config.use_ssl = @use_ssl config.logger = @logger config.uk_header_flag = @uk_header_flag config.after_request_proc = @after_request_proc config.mtls_cert = @mtls_cert config.mtls_key = @mtls_key config.mtls_key_passphrase = @mtls_key_passphrase end end |
#use_ssl? ⇒ Boolean
115 116 117 118 119 120 121 |
# File 'lib/mangopay.rb', line 115 def use_ssl? return true unless preproduction == true return true unless defined?(@use_ssl) return false if @use_ssl == false true end |