Class: SwaggerPetstore::StatusEnum

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

Overview

pet status in the store

Constant Summary collapse

STATUS_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/status_enum.rb', line 20

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

  STATUS_ENUM.include?(value)
end