Class: Wire4Auth::EnvironmentEnum
- Inherits:
-
Object
- Object
- Wire4Auth::EnvironmentEnum
- Defined in:
- lib/wire4_auth/core/environment_enum.rb
Constant Summary collapse
- SANDBOX =
new("https://sandbox-api.wire4.mx/token", "sandbox-api.wire4.mx")
- DEVELOPMENT =
new('https://development-api.wire4.mx/token', 'development-api.wire4.mx')
- PRODUCTION =
new("https://api.wire4.mx/token", "api.wire4.mx")
Instance Attribute Summary collapse
-
#service_url ⇒ Object
readonly
Returns the value of attribute service_url.
-
#token_url ⇒ Object
readonly
Returns the value of attribute token_url.
Instance Method Summary collapse
-
#initialize(token_url, service_url) ⇒ EnvironmentEnum
constructor
A new instance of EnvironmentEnum.
Constructor Details
#initialize(token_url, service_url) ⇒ EnvironmentEnum
Returns a new instance of EnvironmentEnum.
26 27 28 29 |
# File 'lib/wire4_auth/core/environment_enum.rb', line 26 def initialize(token_url, service_url) @token_url = token_url @service_url = service_url end |
Instance Attribute Details
#service_url ⇒ Object (readonly)
Returns the value of attribute service_url.
24 25 26 |
# File 'lib/wire4_auth/core/environment_enum.rb', line 24 def service_url @service_url end |
#token_url ⇒ Object (readonly)
Returns the value of attribute token_url.
22 23 24 |
# File 'lib/wire4_auth/core/environment_enum.rb', line 22 def token_url @token_url end |