Class: MangoPay::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mangopay/configuration.rb

Overview

Top-level configuration details

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_apiKeyObject

String

Your client apiKey



16
17
18
# File 'lib/mangopay/configuration.rb', line 16

def client_apiKey
  @client_apiKey
end

#client_idObject

String

Your client ID



13
14
15
# File 'lib/mangopay/configuration.rb', line 13

def client_id
  @client_id
end

#http_timeoutObject

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_dirObject

String

Path for logging file



23
24
25
# File 'lib/mangopay/configuration.rb', line 23

def log_dir
  @log_dir
end

#preproductionObject 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_urlObject

String

Root URL to use for requests



10
11
12
# File 'lib/mangopay/configuration.rb', line 10

def root_url
  @root_url
end

#temp_dirObject

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_versionObject



33
34
35
# File 'lib/mangopay/configuration.rb', line 33

def api_version
  'v2.01'
end