Class: Truelayer::Configuration
- Inherits:
-
Object
- Object
- Truelayer::Configuration
- Defined in:
- lib/truelayer/configuration.rb
Constant Summary collapse
- BASE_URLS =
{ production: 'https://api.truelayer.com', sandbox: 'https://api.truelayer-sandbox.com' }.freeze
- AUTH_URLS =
{ production: 'https://auth.truelayer.com', sandbox: 'https://auth.truelayer-sandbox.com' }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
- #auth_url ⇒ Object
- #base_url ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/truelayer/configuration.rb', line 18 def initialize @client_id = '' @client_secret = '' @environment = :sandbox # can be either :sandbox or :production @debug = false @verbose = false #return if Faraday::Request.fetch_middleware(:truelayer_auth) #Faraday::Request.register_middleware truelayer_auth: -> { Truelayer::FaradayAuth } end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
16 17 18 |
# File 'lib/truelayer/configuration.rb', line 16 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
16 17 18 |
# File 'lib/truelayer/configuration.rb', line 16 def client_secret @client_secret end |
#debug ⇒ Object
Returns the value of attribute debug.
16 17 18 |
# File 'lib/truelayer/configuration.rb', line 16 def debug @debug end |
#environment ⇒ Object
Returns the value of attribute environment.
16 17 18 |
# File 'lib/truelayer/configuration.rb', line 16 def environment @environment end |
#verbose ⇒ Object
Returns the value of attribute verbose.
16 17 18 |
# File 'lib/truelayer/configuration.rb', line 16 def verbose @verbose end |