Class: MistApi::ConstDeviceTypeGatewayEnum
- Inherits:
-
Object
- Object
- MistApi::ConstDeviceTypeGatewayEnum
- Defined in:
- lib/mist_api/models/const_device_type_gateway_enum.rb
Overview
Device Type. enum: ‘gateway`
Constant Summary collapse
- CONST_DEVICE_TYPE_GATEWAY_ENUM =
[ # TODO: Write general description for GATEWAY GATEWAY = 'gateway'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = GATEWAY) ⇒ Object
20 21 22 23 24 |
# File 'lib/mist_api/models/const_device_type_gateway_enum.rb', line 20 def self.from_value(value, default_value = GATEWAY) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/mist_api/models/const_device_type_gateway_enum.rb', line 14 def self.validate(value) return false if value.nil? CONST_DEVICE_TYPE_GATEWAY_ENUM.include?(value) end |