title: Sum the value of array in hash
body: <p>This is my array</p>
  
  <pre><code>[{:amount=&gt;10, :gl_acct_id=&gt;1, :alt_amount=&gt;20}, {:amount=&gt;20, :gl_acct_id=&gt;2
  , :alt_amount=&gt;30}]
  </code></pre>
  
  <p>i want result </p>
  
  <pre><code>[{:amount =&gt; 30}] or {:amount = 30}
  </code></pre>
  
  <p>Any idea?</p>