Hi,
I need to convert this data I pulled from a database:
[#<Metric:0x24fbbec @attributes={“interested”=>“3”, “prequalified”=>“3”,
“office”=>“Denver, CO”, “passed”=>“1”, “qualified”=>“3”}>,
#<Metric:0x24fbb10 @attributes={“interested”=>“1”, “prequalified”=>“1”,
“office”=>“McLean, VI”, “passed”=>“1”, “qualified”=>“1”}>,
#<Metric:0x24fbae8 @attributes={“interested”=>“1”, “prequalified”=>“1”,
“office”=>“Raleigh, NC”, “passed”=>“1”, “qualified”=>“1”}>,
#<Metric:0x24fbac0 @attributes={“interested”=>“1”, “prequalified”=>“1”,
“office”=>“Troy, MI”, “passed”=>“0”, “qualified”=>“1”}>]
to this format:
[[“3”, "3’, “Denver, CO”, “1”, “3”], [“1”, “1”, “McLean, VI”, “1”, “1”],
[“1”, “1”, “Raleigh, NC”, “1”, “1”], [“1”, “1”, “Troy, MI”, “0”, “1”]]
I’m a little stuck on how to do this.
Any ideas?
Thanks,
David