class AWS::DynamoDB::TableCollection
def key_schema options
def key_schema options hash_key, range_key = options.values_at(:hash_key, :range_key) # default options for :hash_key hash_key ||= { :id => :string } schema = {} schema[:hash_key_element] = schema_element(hash_key, "hash") if range_key schema[:range_key_element] = schema_element(range_key, "range") end schema end