Sha256: 81a2cbb2bec8d8f5c9417b28d955c836502e1ab41d6c250b6bc334e889590793

Contents?: true

Size: 460 Bytes

Versions: 30

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

module Scim
  module Kit
    module V2
      # Represents the valid Uniqueness values
      class Uniqueness
        NONE = 'none'
        SERVER = 'server'
        GLOBAL = 'global'
        VALID = {
          none: NONE,
          server: SERVER,
          global: GLOBAL
        }.freeze

        def self.find(value)
          VALID[value.to_sym] || (raise ArgumentError, :uniqueness)
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
scim-kit-0.7.2 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.7.1 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.7.0 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.6.0 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.5.3 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.5.2 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.5.1 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.5.0 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.4.0 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.3.2 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.3.1 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.3.0 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.16 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.15 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.14 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.13 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.12 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.11 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.10 lib/scim/kit/v2/uniqueness.rb
scim-kit-0.2.9 lib/scim/kit/v2/uniqueness.rb