def rename_keys(options, map = {})
      Hash[options.map { |k, v| [map[k] || k, v] }]
    end
def rename_keys(options, map = {})
      Hash[options.map { |k, v| [map[k] || k, v] }]
    end
Rename a list of keys to the given map.

 @example Rename the given keys
   rename_keys(hash, foo: :bar, zip: :zap)

 @param [Hash] options
   the options to map
 @param [Hash] map
   the map of keys to map

 @return [Hash]