Class: Verizon::ServiceNameEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/verizon/models/service_name_enum.rb

Overview

Service name

Constant Summary collapse

SERVICE_NAME_ENUM =
[
  # TODO: Write general description for LOCATION
  LOCATION = 'Location'.freeze,

  # TODO: Write general description for FOTA
  FOTA = 'fota'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



17
18
19
20
21
# File 'lib/verizon/models/service_name_enum.rb', line 17

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

  SERVICE_NAME_ENUM.include?(value)
end