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', '/wire4/1.0.0')
- DEVELOPMENT =
new('https://development-api.wire4.mx/token', 'development-api.wire4.mx', '/wire4/1.0.0')
- PRODUCTION =
new('https://api.wire4.mx/token', 'api.wire4.mx', '/wire4/1.0.0')
Instance Attribute Summary collapse
-
#base_path ⇒ Object
readonly
Returns the value of attribute base_path.
-
#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, base_path) ⇒ EnvironmentEnum
constructor
A new instance of EnvironmentEnum.
Constructor Details
#initialize(token_url, service_url, base_path) ⇒ EnvironmentEnum
Returns a new instance of EnvironmentEnum.
28 29 30 31 32 |
# File 'lib/wire4_auth/core/environment_enum.rb', line 28 def initialize(token_url, service_url, base_path) @token_url = token_url @service_url = service_url @base_path = base_path end |
Instance Attribute Details
#base_path ⇒ Object (readonly)
Returns the value of attribute base_path.
26 27 28 |
# File 'lib/wire4_auth/core/environment_enum.rb', line 26 def base_path @base_path end |
#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 |