Class: Alloy::KYC::Configuration
- Inherits:
-
Object
- Object
- Alloy::KYC::Configuration
- Defined in:
- lib/alloy/kyc/configuration.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#application_secret ⇒ Object
Returns the value of attribute application_secret.
-
#application_token ⇒ Object
Returns the value of attribute application_token.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 17 18 |
# File 'lib/alloy/kyc/configuration.rb', line 11 def initialize @application_token = "dpDD6z4olOSI7N4fMCsAlKjFa7reBYhu" @application_secret = "oJm3niQX1Pdy4z675kefEIKBgFn9tQ45" @api_endpoint = "https://sandbox.alloy.co/v1/" @backend = Alloy::KYC::Backends::Remote.new @open_timeout = 2 @read_timeout = 5 end |
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
6 7 8 |
# File 'lib/alloy/kyc/configuration.rb', line 6 def api_endpoint @api_endpoint end |
#application_secret ⇒ Object
Returns the value of attribute application_secret.
5 6 7 |
# File 'lib/alloy/kyc/configuration.rb', line 5 def application_secret @application_secret end |
#application_token ⇒ Object
Returns the value of attribute application_token.
4 5 6 |
# File 'lib/alloy/kyc/configuration.rb', line 4 def application_token @application_token end |
#backend ⇒ Object
Returns the value of attribute backend.
7 8 9 |
# File 'lib/alloy/kyc/configuration.rb', line 7 def backend @backend end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
8 9 10 |
# File 'lib/alloy/kyc/configuration.rb', line 8 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
9 10 11 |
# File 'lib/alloy/kyc/configuration.rb', line 9 def read_timeout @read_timeout end |