# File lib/aws/dynamo_db/keys.rb, line 29 def item_key_hash item item.table.assert_schema! key = {} key[:hash_key_element] = format_attribute_value(item.hash_value) key[:range_key_element] = format_attribute_value(item.range_value) if item.table.composite_key? key end