Class: GoogleMapsPlatform::Environment
- Inherits:
-
Object
- Object
- GoogleMapsPlatform::Environment
- Defined in:
- lib/google_maps_platform/configuration.rb
Overview
An enum for SDK environments.
Constant Summary collapse
- ENVIRONMENT =
[ PRODUCTION = 'Production'.freeze ].freeze
Class Method Summary collapse
-
.from_value(value, default_value = PRODUCTION) ⇒ Object
Converts a string or symbol into a valid Environment constant.
Class Method Details
.from_value(value, default_value = PRODUCTION) ⇒ Object
Converts a string or symbol into a valid Environment constant.
14 15 16 17 18 |
# File 'lib/google_maps_platform/configuration.rb', line 14 def self.from_value(value, default_value = PRODUCTION) return default_value if value.nil? default_value end |