Class: Scimitar::Schema::Vdtp

Inherits:
Base
  • Object
show all
Defined in:
app/models/scimitar/schema/vdtp.rb

Overview

Represents a common schema for a few complex types; base class DRYs up code. “Vdtp” - Value, Display, Type, Primary.

Direct Known Subclasses

Email, Entitlement, Ims, PhoneNumber, Photo, Role

Instance Attribute Summary

Attributes inherited from Base

#description, #id, #meta, #name, #scim_attributes

Class Method Summary collapse

Methods inherited from Base

#as_json, cloned_scim_attributes, find_attribute, #initialize, valid?

Constructor Details

This class inherits a constructor from Scimitar::Schema::Base

Class Method Details

.scim_attributesObject



8
9
10
11
12
13
14
15
# File 'app/models/scimitar/schema/vdtp.rb', line 8

def self.scim_attributes
  @scim_attributes ||= [
    Attribute.new(name: 'value',   type: 'string', required: Scimitar.engine_configuration.optional_value_fields_required),
    Attribute.new(name: 'display', type: 'string', mutability: 'readOnly'),
    Attribute.new(name: 'type',    type: 'string'),
    Attribute.new(name: 'primary', type: 'boolean'),
  ]
end