Class: SwaggerPetstore::OAuthScopePetstoreAuthEnum
- Inherits:
-
Object
- Object
- SwaggerPetstore::OAuthScopePetstoreAuthEnum
- Defined in:
- lib/swagger_petstore/models/o_auth_scope_petstore_auth_enum.rb
Overview
OAuth 2 scopes supported by the API
Constant Summary collapse
- O_AUTH_SCOPE_PETSTORE_AUTH_ENUM =
[ # read your pets READPETS = 'read:pets'.freeze, # modify pets in your account WRITEPETS = 'write:pets'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/swagger_petstore/models/o_auth_scope_petstore_auth_enum.rb', line 17 def self.validate(value) return false if value.nil? O_AUTH_SCOPE_PETSTORE_AUTH_ENUM.include?(value) end |