Class: MistApi::ResponseMapImportApActionEnum
- Inherits:
-
Object
- Object
- MistApi::ResponseMapImportApActionEnum
- Defined in:
- lib/mist_api/models/response_map_import_ap_action_enum.rb
Overview
enum: ‘assigned-named-placed`, `assigned-placed`, `ignored`, `named-placed`, `placed`
Constant Summary collapse
- RESPONSE_MAP_IMPORT_AP_ACTION_ENUM =
[ # TODO: Write general description for ASSIGNEDNAMEDPLACED ASSIGNEDNAMEDPLACED = 'assigned-named-placed'.freeze, # TODO: Write general description for ASSIGNEDPLACED ASSIGNEDPLACED = 'assigned-placed'.freeze, # TODO: Write general description for IGNORED IGNORED = 'ignored'.freeze, # TODO: Write general description for NAMEDPLACED NAMEDPLACED = 'named-placed'.freeze, # TODO: Write general description for PLACED PLACED = 'placed'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ASSIGNEDNAMEDPLACED) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/mist_api/models/response_map_import_ap_action_enum.rb', line 33 def self.from_value(value, default_value = ASSIGNEDNAMEDPLACED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'assignednamedplaced' then ASSIGNEDNAMEDPLACED when 'assignedplaced' then ASSIGNEDPLACED when 'ignored' then IGNORED when 'namedplaced' then NAMEDPLACED when 'placed' then PLACED else default_value end end |
.validate(value) ⇒ Object
27 28 29 30 31 |
# File 'lib/mist_api/models/response_map_import_ap_action_enum.rb', line 27 def self.validate(value) return false if value.nil? RESPONSE_MAP_IMPORT_AP_ACTION_ENUM.include?(value) end |