Method: Scimitar::Resources::Base.resource_type

Defined in:
app/models/scimitar/resources/base.rb

.resource_type(location) ⇒ Object



200
201
202
203
204
205
206
207
208
209
210
211
# File 'app/models/scimitar/resources/base.rb', line 200

def self.resource_type(location)
  resource_type = ResourceType.new(
    endpoint: endpoint,
    schema: schema.id,
    id: resource_type_id,
    name: resource_type_id,
    schemaExtensions: extended_schemas.map(&:id)
  )

  resource_type.meta.location = location
  resource_type
end