Class: SwaggerPetstore::ContentTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_petstore/models/content_type_enum.rb

Overview

Content-Type.

Constant Summary collapse

CONTENT_TYPE_ENUM =
[
  # TODO: Write general description for ENUM_APPLICATIONXWWWFORMURLENCODED
  ENUM_APPLICATIONXWWWFORMURLENCODED = 'application/x-www-form-urlencoded'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/swagger_petstore/models/content_type_enum.rb', line 14

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

  CONTENT_TYPE_ENUM.include?(value)
end