I have a table with column name like col1, col2, col3, col4 … col10.
In rails, after I get the instance of the class, I would like to use a
for loop to retrieve values from these columns and put them into a hash.
The hash will be used for another find call. Is that possible?