# File lib/aws/dynamo_db/primary_key_element.rb, line 27 def initialize(hash) @name = hash[:name] || hash["AttributeName"] @type = hash[:type] || ATTRIBUTE_TYPES[hash["AttributeType"]] end