Commit fbd28f1

mokha <mokha@cisco.com>
2019-01-19 00:06:02
allow injection of attributes
1 parent bbfa94d
Changed files (1)
lib
lib/scim/shady.rb
@@ -5,8 +5,8 @@ require 'scim-kit'
 module Scim
   module Shady
     class User < ::Scim::Kit::V2::Resource
-      def initialize
-        super(schemas: [self.class.schema])
+      def initialize(attributes = {})
+        super(schemas: [self.class.schema], attributes: attributes)
       end
 
       def template_name