I have a method that is parsing through a spreadsheet row by row. I also am parsing the rows for each cells value. I can get the string version of the values by using
row.xpath("Cell").each do |cell|
row_array << cell.text
end
I know that my problem is that I am using text
, but is there a value
method? I tried searching, but I couldn't find anything. I need the values in order to upload this to Postgres.
I need the array to be able to have ["string", double, date] so I can't just change the format of all of them.
Here is an example of two cells.
<Cell><Data ss:Type="String"></Data></Cell>
<Cell ss:StyleID="s_decimal7RPT"><Data ss:Type="Number">6.7445747E5</Data></Cell>
Just in case someone else needs it.