Class: NewStoreApi::ChannelTypeEnum
- Inherits:
-
Object
- Object
- NewStoreApi::ChannelTypeEnum
- Defined in:
- lib/new_store_api/models/channel_type_enum.rb
Overview
The origin type of the order.
Constant Summary collapse
- CHANNEL_TYPE_ENUM =
[ # TODO: Write general description for STORE STORE = 'STORE'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = STORE) ⇒ Object
20 21 22 23 24 |
# File 'lib/new_store_api/models/channel_type_enum.rb', line 20 def self.from_value(value, default_value = STORE) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/new_store_api/models/channel_type_enum.rb', line 14 def self.validate(value) return false if value.nil? CHANNEL_TYPE_ENUM.include?(value) end |