Class: MistApi::AccountSkyatpCloudNameEnum
- Inherits:
-
Object
- Object
- MistApi::AccountSkyatpCloudNameEnum
- Defined in:
- lib/mist_api/models/account_skyatp_cloud_name_enum.rb
Overview
Sky ATP cloud name. enum: ‘www.amerskyatp.com`, `www.apacskyatp.com`, `www.euroskyatp.com`, `www.canadaskyatp.com`
Constant Summary collapse
- ACCOUNT_SKYATP_CLOUD_NAME_ENUM =
[ # TODO: Write general description for ENUM_WWWAMERSKYATPCOM ENUM_WWWAMERSKYATPCOM = 'www.amerskyatp.com'.freeze, # TODO: Write general description for ENUM_WWWAPACSKYATPCOM ENUM_WWWAPACSKYATPCOM = 'www.apacskyatp.com'.freeze, # TODO: Write general description for ENUM_WWWEUROSKYATPCOM ENUM_WWWEUROSKYATPCOM = 'www.euroskyatp.com'.freeze, # TODO: Write general description for ENUM_WWWCANADASKYATPCOM ENUM_WWWCANADASKYATPCOM = 'www.canadaskyatp.com'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ENUM_WWWAMERSKYATPCOM) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/mist_api/models/account_skyatp_cloud_name_enum.rb', line 30 def self.from_value(value, default_value = ENUM_WWWAMERSKYATPCOM) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'enum_wwwamerskyatpcom' then ENUM_WWWAMERSKYATPCOM when 'enum_wwwapacskyatpcom' then ENUM_WWWAPACSKYATPCOM when 'enum_wwweuroskyatpcom' then ENUM_WWWEUROSKYATPCOM when 'enum_wwwcanadaskyatpcom' then ENUM_WWWCANADASKYATPCOM else default_value end end |
.validate(value) ⇒ Object
24 25 26 27 28 |
# File 'lib/mist_api/models/account_skyatp_cloud_name_enum.rb', line 24 def self.validate(value) return false if value.nil? ACCOUNT_SKYATP_CLOUD_NAME_ENUM.include?(value) end |