Commit 0cd6c95
Changed files (3)
lib
scim
kit
spec
scim
kit
lib/scim/kit/v2/resource.rb
@@ -12,6 +12,7 @@ module Scim
attr_accessor :id, :external_id
attr_reader :meta
attr_reader :schemas
+ attr_reader :raw_attributes
validate :schema_validations
@@ -19,6 +20,7 @@ module Scim
@meta = Meta.new(schemas[0].name, location)
@meta.disable_timestamps
@schemas = schemas
+ @raw_attributes = attributes
schemas.each do |schema|
define_attributes_for(self, schema.attributes)
end
lib/scim/kit/version.rb
@@ -2,6 +2,6 @@
module Scim
module Kit
- VERSION = '0.2.13'
+ VERSION = '0.2.14'
end
end
spec/scim/kit/v2/resource_spec.rb
@@ -461,6 +461,7 @@ RSpec.describe Scim::Kit::V2::Resource do
end
end
+ specify { expect(subject.raw_attributes).to eql(attributes) }
specify { expect(subject.user_name).to eql(user_name) }
specify { expect(subject.age).to be(34) }
specify { expect(subject.colours).to match_array(%w[red green blue]) }