Sha256: 792679d21f787cc224903769439f0b86d513daac93fd6355ca4cf5095b2195ba

Contents?: true

Size: 982 Bytes

Versions: 2

Compression:

Stored size: 982 Bytes

Contents

=begin
#Svix API

#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 1.1.1

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.2.0

=end

require 'date'
require 'time'

module Svix
  class Oauth2GrantType
    CLIENT_CREDENTIALS = "clientCredentials".freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      constantValues = Oauth2GrantType.constants.select { |c| Oauth2GrantType::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Oauth2GrantType" if constantValues.empty?
      value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
svix-1.23.0 lib/svix/models/oauth2_grant_type.rb
svix-1.22.0 lib/svix/models/oauth2_grant_type.rb