# File lib/aws/record/abstract_base.rb, line 460 def hydrate id, data # @todo need to do something about partial hyrdation of attributes @_id = id # New objects are populated with default values, but we don't # want these values to hang around when hydrating persisted values # (those values may have been blanked out before save). self.class.attributes.values.each do |attribute| @_data[attribute.name] = nil end ignore_changes do bulk_assign(deserialize_item_data(data)) end @_persisted = true end