How to sum properties of the objects within an array in Ruby How to sum properties of the objects within an array in Ruby arrays arrays