Class: Zspay::Configuration
- Inherits:
-
Object
- Object
- Zspay::Configuration
- Defined in:
- lib/zspay/configuration.rb
Overview
The Configuration class is used to manage configuration settings for the Zspay library. It provides class-level accessors and methods to set and retrieve the configuration settings.
Instance Attribute Summary collapse
-
#token ⇒ String
The API token used for authenticating requests to the Zspay service.
Instance Method Summary collapse
-
#endpoint ⇒ String
Returns the default API endpoint for the Zspay service.
Instance Attribute Details
#token ⇒ String
Returns the API token used for authenticating requests to the Zspay service.
9 10 11 |
# File 'lib/zspay/configuration.rb', line 9 def token @token end |
Instance Method Details
#endpoint ⇒ String
Returns the default API endpoint for the Zspay service.
14 15 16 |
# File 'lib/zspay/configuration.rb', line 14 def endpoint ENV.fetch("Z_SYSTEMS_API", "https://api.zsystems.com.br") end |