Class: Scimitar::Schema::Address

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

Overview

Represents the schema for the Address complex type.

See also Scimitar::ComplexTypes::Address

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



10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/scimitar/schema/address.rb', line 10

def self.scim_attributes
  @scim_attributes ||= [
    Attribute.new(name: 'type',          type: 'string'),
    Attribute.new(name: 'primary',       type: 'boolean'),
    Attribute.new(name: 'formatted',     type: 'string'),
    Attribute.new(name: 'streetAddress', type: 'string'),
    Attribute.new(name: 'locality',      type: 'string'),
    Attribute.new(name: 'region',        type: 'string'),
    Attribute.new(name: 'postalCode',    type: 'string'),
    Attribute.new(name: 'country',       type: 'string'),
  ]
end