Class: SwaggerPetstore::Status2Enum

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

Overview

status2.

Constant Summary collapse

STATUS2_ENUM =
[
  # TODO: Write general description for AVAILABLE
  AVAILABLE = 'available'.freeze,

  # TODO: Write general description for PENDING
  PENDING = 'pending'.freeze,

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

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/swagger_petstore/models/status2_enum.rb', line 20

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

  STATUS2_ENUM.include?(value)
end