Class: Scimitar::Schema::Name

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

Overview

Represents the schema for the Name complex type See also Scimitar::ComplexTypes::Name

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



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

def self.scim_attributes
  @scim_attributes ||= [
    Attribute.new(name: 'familyName',       type: 'string', required: true),
    Attribute.new(name: 'givenName',        type: 'string', required: true),
    Attribute.new(name: 'middleName',       type: 'string'),
    Attribute.new(name: 'formatted',        type: 'string'),
    Attribute.new(name: 'honorificPrefix',  type: 'string'),
    Attribute.new(name: 'honorificSuffix',  type: 'string'),
  ]
end