Class: MangoPay::Configuration
- Inherits:
-
Object
- Object
- MangoPay::Configuration
- Defined in:
- lib/mangopay.rb
Instance Attribute Summary collapse
-
#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.
-
#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
#client_apiKey ⇒ Object
Returns the value of attribute client_apiKey.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def client_apiKey @client_apiKey end |
#client_id ⇒ Object
Returns the value of attribute client_id.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def client_id @client_id end |
#http_max_retries ⇒ Object
Returns the value of attribute http_max_retries.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def http_max_retries @http_max_retries end |
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def http_open_timeout @http_open_timeout end |
#http_timeout ⇒ Object
Returns the value of attribute http_timeout.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def http_timeout @http_timeout end |
#log_file ⇒ Object
Returns the value of attribute log_file.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def log_file @log_file end |
#log_trace_headers ⇒ Object
Returns the value of attribute log_trace_headers.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def log_trace_headers @log_trace_headers end |
#logger ⇒ Object
Returns the value of attribute logger.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def logger @logger end |
#preproduction ⇒ Object
Returns the value of attribute preproduction.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def preproduction @preproduction end |
#root_url ⇒ Object
Returns the value of attribute root_url.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def root_url @root_url end |
#temp_dir ⇒ Object
Returns the value of attribute temp_dir.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def temp_dir @temp_dir end |
#uk_header_flag ⇒ Object
Returns the value of attribute uk_header_flag.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def uk_header_flag @uk_header_flag end |
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
58 59 60 |
# File 'lib/mangopay.rb', line 58 def use_ssl @use_ssl end |
Instance Method Details
#apply_configuration ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/mangopay.rb', line 64 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 end end |
#use_ssl? ⇒ Boolean
100 101 102 103 104 105 106 |
# File 'lib/mangopay.rb', line 100 def use_ssl? return true unless preproduction == true return true unless defined?(@use_ssl) return false if @use_ssl == false true end |