Commit 95724d7
Changed files (2)
lib
scim
kit
v2
templates
lib/scim/kit/v2/templates/resource_type.json.jbuilder
@@ -2,8 +2,7 @@
json.key_format! camelize: :lower
json.meta do
- json.resource_type 'ResourceType'
- json.location location
+ render meta, json: json
end
json.schemas [Scim::Kit::V2::Schema::RESOURCE_TYPE]
json.id id
lib/scim/kit/v2/resource_type.rb
@@ -12,10 +12,11 @@ module Scim
attr_accessor :description
attr_accessor :endpoint
attr_accessor :schema
- attr_reader :location
+ attr_reader :meta
def initialize(location:)
- @location = location
+ @meta = Meta.new('ResourceType', location)
+ @meta.version = @meta.created = @meta.last_modified = nil
end
def self.build(*args)