Sha256: 87de5892298f1c523a609447dc89ec6192b83a0d0d5e3ae5b2ed44b463120ac8

Contents?: true

Size: 730 Bytes

Versions: 5

Compression:

Stored size: 730 Bytes

Contents

=begin
#API Reference

#Review our [API Introduction](../api-introduction) to get started.

OpenAPI spec version: 1.0

Generated by: https://github.com/swagger-api/swagger-codegen.git
=end

require 'date'

module TurnkeyClient
  class AccessType
    WEB = 'ACCESS_TYPE_WEB'.freeze
    API = 'ACCESS_TYPE_API'.freeze
    ALL = 'ACCESS_TYPE_ALL'.freeze

    # 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 = AccessType.constants.select { |c| AccessType::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #AccessType" if constantValues.empty?
      value
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
turnkey_client-0.0.12 lib/turnkey_client/models/access_type.rb
turnkey_client-0.0.9 lib/turnkey_client/models/access_type.rb
turnkey_client-0.0.8 lib/turnkey_client/models/access_type.rb
turnkey_client-0.0.7 lib/turnkey_client/models/access_type.rb
turnkey_client-0.0.4 lib/turnkey_client/models/access_type.rb