Class: Scim::Kit::V2::Uniqueness

Inherits:
Object
  • Object
show all
Defined in:
lib/scim/kit/v2/uniqueness.rb

Overview

Represents the valid Uniqueness values

Constant Summary collapse

NONE =
'none'
SERVER =
'server'
GLOBAL =
'global'
VALID =
{
  none: NONE,
  server: SERVER,
  global: GLOBAL
}.freeze

Class Method Summary collapse

Class Method Details

.find(value) ⇒ Object



17
18
19
# File 'lib/scim/kit/v2/uniqueness.rb', line 17

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