attributes= (DataMapper::Resource)

    # File lib/dm-core/resource.rb, line 273
        def attributes=(attributes)
          attributes.each do |name, value|
            case name
              when String, Symbol
                if model.public_method_defined?(setter = "#{name}=")
                  send(setter, value)
                else
                  raise ArgumentError, "The attribute '#{name}' is not accessible in #{model}"
                end
              when Associations::Relationship, Property
                name.set(self, value)
            end
          end
        end