Class: Verizon::NumericalDataUnitEnum

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

Overview

Unit of time.

Constant Summary collapse

NUMERICAL_DATA_UNIT_ENUM =
[
  # TODO: Write general description for SECOND
  SECOND = 'SECOND'.freeze,

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

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

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/verizon/models/numerical_data_unit_enum.rb', line 23

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

  NUMERICAL_DATA_UNIT_ENUM.include?(value)
end