Module: SmileIdentityCore::ENV
- Defined in:
- lib/smile-identity-core/constants/env.rb
Overview
The ENV module contains constants and utility methods for mapping managing aliases to Smile Identity servers.
Constant Summary collapse
- SID_SERVER_MAPPING =
{ '0' => 'https://testapi.smileidentity.com/v1', '1' => 'https://api.smileidentity.com/v1', }.freeze
- TEST =
'0'- LIVE =
'1'
Class Method Summary collapse
Class Method Details
.determine_url(sid_server) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/smile-identity-core/constants/env.rb', line 17 def determine_url(sid_server) if sid_server.to_s =~ URI::DEFAULT_PARSER.make_regexp sid_server else SID_SERVER_MAPPING[sid_server.to_s] || sid_server end end |