Class: SwaggerPetstore::Status1Enum

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

Overview

Order Status

Constant Summary collapse

STATUS1_ENUM =
[
  # TODO: Write general description for PLACED
  PLACED = 'placed'.freeze,

  # TODO: Write general description for APPROVED
  APPROVED = 'approved'.freeze,

  # TODO: Write general description for DELIVERED
  DELIVERED = 'delivered'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



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

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

  STATUS1_ENUM.include?(value)
end