Class: ShellEv::TariffVOUpdatedByEnum
- Inherits:
-
Object
- Object
- ShellEv::TariffVOUpdatedByEnum
- Defined in:
- lib/shell_ev/models/tariff_vo_updated_by_enum.rb
Overview
Source of the last update of the tariff details
Constant Summary collapse
- TARIFF_VO_UPDATED_BY_ENUM =
[ # TODO: Write general description for FEED FEED = 'Feed'.freeze, # TODO: Write general description for ADMIN ADMIN = 'Admin'.freeze, # TODO: Write general description for TARIFFSERVICE TARIFFSERVICE = 'TariffService'.freeze, # TODO: Write general description for DEFAULTS DEFAULTS = 'Defaults'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/shell_ev/models/tariff_vo_updated_by_enum.rb', line 23 def self.validate(value) return false if value.nil? TARIFF_VO_UPDATED_BY_ENUM.include?(value) end |