title: Looping over Ruby hash and accessing values
body: <p>I am quite new to Ruby and could not find an appropriate answer to my questions. Let's say I have hash named 
      <code>users_hsh = {}</code>.
  I am looping through all of my users in the DB and creating the following.</p>
  
  <pre><code>users.each do |user|
       users_hsh[user.full_name] = {
           completed_activities: some_integer_value,
           active_activities: some_integer_value,
           future_activities: some_integer_value
       } 
  end
  </code></pre>
  
  <p>Now, I created a new hash named
      <code>total_sum_not_zero_user_hsh = {}</code>.
  I want to loop over all of the users in the users_hsh and check for each user if the total sum of completed_activities + active_activities + future_activities does not equal 0 and if this condition holds, I want to add this user to total_sum_not_zero_user_hsh. I have done the following but seems that this does not work. </p>
  
  <pre><code>users_hsh.each do |usr|
      if usr.values.sum != 0
          total_sum_not_zero_user_hsh[usr] = {
              completed_activities: some_integer_value,
              active_activities: some_integer_value,
              future_activities: some_integer_value
          }
      end
  end
  </code></pre>
  
  <p>What am I doing wrong? Thanks in advance!</p>