Class: ShellEv::ElectricalPropertiesPowerTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/shell_ev/models/electrical_properties_power_type_enum.rb

Overview

Power Type used in this connector.

Constant Summary collapse

ELECTRICAL_PROPERTIES_POWER_TYPE_ENUM =
[
  # TODO: Write general description for AC1PHASE
  AC1PHASE = 'AC1Phase'.freeze,

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

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/shell_ev/models/electrical_properties_power_type_enum.rb', line 20

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

  ELECTRICAL_PROPERTIES_POWER_TYPE_ENUM.include?(value)
end