Class: Verizon::DevicesProtocolEnum

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

Overview

Firmware protocol. Valid values include: LWM2M, OMADM, HTTP.

Constant Summary collapse

DEVICES_PROTOCOL_ENUM =
[
  # TODO: Write general description for LW_M2M
  LW_M2M = 'LWM2M'.freeze,

  # TODO: Write general description for OMDADM
  OMDADM = 'OMDADM'.freeze,

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/verizon/models/devices_protocol_enum.rb', line 20

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

  DEVICES_PROTOCOL_ENUM.include?(value)
end