to_h()
public
Collapses the row into a simple Hash. Be warned
that this discards field order and
clobbers duplicate fields.
# File lib/csv/row.rb, line 331
def to_h
hash = {}
each do |key, _value|
hash[key] = self[key] unless hash.key?(key)
end
hash
end