class AWS::DynamoDB::Item
def self.new_from(op, response_object, table, *args)
- Api: - private
def self.new_from(op, response_object, table, *args) config = args.last.is_a?(Hash) ? args.last : AWS.config table.assert_schema! hash_value = value_from_response(response_object[table.hash_key.name]) range_value = value_from_response(response_object[table.range_key.name]) if table.range_key raise "missing hash key value in put_item response" unless hash_value raise "missing range key value in put_item response" unless range_value || !table.range_key super(op, response_object, table, hash_value, range_value, *args) end