Class: MistApi::WlanDataratesTemplateEnum
- Inherits:
-
Object
- Object
- MistApi::WlanDataratesTemplateEnum
- Defined in:
- lib/mist_api/models/wlan_datarates_template_enum.rb
Overview
Data Rates template to apply. enum: * ‘no-legacy`: no 11b * `compatible`: all, like before, default setting that Broadcom/Atheros used
-
‘legacy-only`: disable 802.11n and 802.11ac * `high-density`: no 11b, no
low rates * ‘custom`: user defined
Constant Summary collapse
- WLAN_DATARATES_TEMPLATE_ENUM =
[ # TODO: Write general description for COMPATIBLE COMPATIBLE = 'compatible'.freeze, # TODO: Write general description for LEGACYONLY LEGACYONLY = 'legacy-only'.freeze, # TODO: Write general description for CUSTOM CUSTOM = 'custom'.freeze, # TODO: Write general description for NOLEGACY NOLEGACY = 'no-legacy'.freeze, # TODO: Write general description for HIGHDENSITY HIGHDENSITY = 'high-density'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = COMPATIBLE) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/mist_api/models/wlan_datarates_template_enum.rb', line 35 def self.from_value(value, default_value = COMPATIBLE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'compatible' then COMPATIBLE when 'legacyonly' then LEGACYONLY when 'custom' then CUSTOM when 'nolegacy' then NOLEGACY when 'highdensity' then HIGHDENSITY else default_value end end |
.validate(value) ⇒ Object
29 30 31 32 33 |
# File 'lib/mist_api/models/wlan_datarates_template_enum.rb', line 29 def self.validate(value) return false if value.nil? WLAN_DATARATES_TEMPLATE_ENUM.include?(value) end |