code: def attributes=(attributes)
        if attributes
          attributes.each do |attribute, value|
            attribute = attribute.to_s
            if attribute == 'metadata'
              self.attributes = value
            else
              __send__("#{attribute}=", value) if respond_to?("#{attribute}=", true)
            end
          end
        end
      end
docs: Attempts to set attributes on the object only if they've been explicitly
   defined by the class.  Note that this will also attempt to interpret any
   "metadata" properties as additional attributes.
  
   @api private
   @param [Hash] attributes The updated attributes for the resource