Sha256: 3517a0104382776bc079be714f22822765a7af5b06a7921f4f87e0ca10686f0e

Contents?: true

Size: 675 Bytes

Versions: 4

Compression:

Stored size: 675 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 Effect
    ALLOW = 'EFFECT_ALLOW'.freeze
    DENY = 'EFFECT_DENY'.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 = Effect.constants.select { |c| Effect::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Effect" if constantValues.empty?
      value
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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