Class: Scim::Kit::V2::Mutability
- Inherits:
-
Object
- Object
- Scim::Kit::V2::Mutability
- Defined in:
- lib/scim/kit/v2/mutability.rb
Overview
Represents the valid Mutability values
Constant Summary collapse
- READ_ONLY =
'readOnly'
- READ_WRITE =
'readWrite'
- IMMUTABLE =
'immutable'
- WRITE_ONLY =
'writeOnly'
- VALID =
{ immutable: IMMUTABLE, readOnly: READ_ONLY, readWrite: READ_WRITE, read_only: READ_ONLY, read_write: READ_WRITE, readonly: READ_ONLY, readwrite: READ_WRITE, writeOnly: WRITE_ONLY, write_only: WRITE_ONLY, writeonly: WRITE_ONLY }.freeze
Class Method Summary collapse
Class Method Details
.find(value) ⇒ Object
25 26 27 |
# File 'lib/scim/kit/v2/mutability.rb', line 25 def self.find(value) VALID[value.to_sym] || (raise ArgumentError, :mutability) end |