Class: MistApi::WebhookLocationCentrakEventTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/mist_api/models/webhook_location_centrak_event_type_enum.rb

Overview

webhook_location_centrak_event_type.

Constant Summary collapse

WEBHOOK_LOCATION_CENTRAK_EVENT_TYPE_ENUM =
[
  # TODO: Write general description for WIFI
  WIFI = 'wifi'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = WIFI) ⇒ Object



20
21
22
23
24
# File 'lib/mist_api/models/webhook_location_centrak_event_type_enum.rb', line 20

def self.from_value(value, default_value = WIFI)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/mist_api/models/webhook_location_centrak_event_type_enum.rb', line 14

def self.validate(value)
  return false if value.nil?

  WEBHOOK_LOCATION_CENTRAK_EVENT_TYPE_ENUM.include?(value)
end