I'm confused, I have @quote.quote_line_items
and this is an array of items like this:
[{id: 85, part_number: "X67AC0M08", short_description: "X67 Threaded Caps M8, 50 pieces", list_price: "18.00", arg_cost: "12.15", long_description: "X67 Threaded Caps M8, 50 pieces", created_at: "2009-11-27 20:29:58", updated_at: "2009-11-27 20:29:58", quote_id: 1259353798}, {...}]
Consider if many items like this are in an array, how can I get, say, all of the list_price
values summed up.
Is there a simple method to get the sum of all the list_price
values by key?