Class: UntitledApi::FormatEnum
- Inherits:
-
Object
- Object
- UntitledApi::FormatEnum
- Defined in:
- lib/untitled_api/models/format_enum.rb
Overview
format.
Constant Summary collapse
- FORMAT_ENUM =
[ # TODO: Write general description for JSON JSON = 'json'.freeze, # TODO: Write general description for YAML YAML = 'yaml'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/untitled_api/models/format_enum.rb', line 17 def self.validate(value) return false if value.nil? FORMAT_ENUM.include?(value) end |