Class: MangoPay::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_apiKeyObject

Returns the value of attribute client_apiKey.



53
54
55
# File 'lib/mangopay.rb', line 53

def client_apiKey
  @client_apiKey
end

#client_idObject

Returns the value of attribute client_id.



53
54
55
# File 'lib/mangopay.rb', line 53

def client_id
  @client_id
end

#http_max_retriesObject

Returns the value of attribute http_max_retries.



53
54
55
# File 'lib/mangopay.rb', line 53

def http_max_retries
  @http_max_retries
end

#http_open_timeoutObject

Returns the value of attribute http_open_timeout.



53
54
55
# File 'lib/mangopay.rb', line 53

def http_open_timeout
  @http_open_timeout
end

#http_timeoutObject

Returns the value of attribute http_timeout.



53
54
55
# File 'lib/mangopay.rb', line 53

def http_timeout
  @http_timeout
end

#log_fileObject

Returns the value of attribute log_file.



53
54
55
# File 'lib/mangopay.rb', line 53

def log_file
  @log_file
end

#loggerObject

Returns the value of attribute logger.



53
54
55
# File 'lib/mangopay.rb', line 53

def logger
  @logger
end

#preproductionObject

Returns the value of attribute preproduction.



53
54
55
# File 'lib/mangopay.rb', line 53

def preproduction
  @preproduction
end

#root_urlObject

Returns the value of attribute root_url.



53
54
55
# File 'lib/mangopay.rb', line 53

def root_url
  @root_url
end

#temp_dirObject

Returns the value of attribute temp_dir.



53
54
55
# File 'lib/mangopay.rb', line 53

def temp_dir
  @temp_dir
end

#use_sslObject

Returns the value of attribute use_ssl.



53
54
55
# File 'lib/mangopay.rb', line 53

def use_ssl
  @use_ssl
end

Instance Method Details

#use_ssl?Boolean

Returns:

  • (Boolean)


79
80
81
82
83
84
85
# File 'lib/mangopay.rb', line 79

def use_ssl?
  return true unless preproduction == true
  return true unless defined?(@use_ssl)
  return false if @use_ssl == false

  true
end