Class: Zspay::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#tokenString

Returns the API token used for authenticating requests to the Zspay service.

Returns:

  • (String)

    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

#endpointString

Returns the default API endpoint for the Zspay service.

Returns:

  • (String)

    the base URL of the Zspay API endpoint.



14
15
16
# File 'lib/zspay/configuration.rb', line 14

def endpoint
  ENV.fetch("Z_SYSTEMS_API", "https://api.zsystems.com.br")
end