Class: MangoPay::Configuration
- Inherits:
-
Object
- Object
- MangoPay::Configuration
- Defined in:
- lib/mangopay/configuration.rb
Overview
Top-level configuration details
Instance Attribute Summary collapse
-
#client_apiKey ⇒ Object
- String
-
Your client apiKey.
-
#client_id ⇒ Object
- String
-
Your client ID.
-
#http_timeout ⇒ Object
- Integer
-
Number of milliseconds after which to timeout requests.
-
#log_dir ⇒ Object
- String
-
Path for logging file.
-
#preproduction ⇒ Object
(also: #preproduction?)
- true/false
-
True if the sandbox environment should be used.
-
#root_url ⇒ Object
- String
-
Root URL to use for requests.
-
#temp_dir ⇒ Object
- String
-
Path to directory in which to store authorization token If nil, tokens will be stored in-memory.
Instance Method Summary collapse
- #api_version ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 |
# File 'lib/mangopay/configuration.rb', line 28 def initialize self.preproduction = true self.http_timeout = 10_000 end |
Instance Attribute Details
#client_apiKey ⇒ Object
- String
-
Your client apiKey
16 17 18 |
# File 'lib/mangopay/configuration.rb', line 16 def client_apiKey @client_apiKey end |
#client_id ⇒ Object
- String
-
Your client ID
13 14 15 |
# File 'lib/mangopay/configuration.rb', line 13 def client_id @client_id end |
#http_timeout ⇒ Object
- Integer
-
Number of milliseconds after which to timeout requests
26 27 28 |
# File 'lib/mangopay/configuration.rb', line 26 def http_timeout @http_timeout end |
#log_dir ⇒ Object
- String
-
Path for logging file
23 24 25 |
# File 'lib/mangopay/configuration.rb', line 23 def log_dir @log_dir end |
#preproduction ⇒ Object Also known as: preproduction?
- true/false
-
True if the sandbox environment should be used
7 8 9 |
# File 'lib/mangopay/configuration.rb', line 7 def preproduction @preproduction end |
#root_url ⇒ Object
- String
-
Root URL to use for requests
10 11 12 |
# File 'lib/mangopay/configuration.rb', line 10 def root_url @root_url end |
#temp_dir ⇒ Object
- String
-
Path to directory in which to store authorization token If nil, tokens will be stored in-memory.
20 21 22 |
# File 'lib/mangopay/configuration.rb', line 20 def temp_dir @temp_dir end |
Instance Method Details
#api_version ⇒ Object
33 34 35 |
# File 'lib/mangopay/configuration.rb', line 33 def api_version 'v2.01' end |