title: using `include?` in ruby to check if something is in a hash
body: <p>I'm aware of how <code>include?</code> works, however not really clear using it with multidimensional array, or a hash (is this possible with a hash?)</p>
  
  <p>For example, given I have a hash that looks like:</p>
  
  <p><code>@user.badges =&gt; [{:id =&gt; 1, :name =&gt; 'blahh', :description =&gt; 'blah blah blah'}, {:id =&gt; 2, :name =&gt; 'blahh', :description =&gt; 'blah blah blah'}]</code></p>
  
  <p>Can I see if it has an object with the id of 1 in it like this?</p>
  
  <pre><code>if @user.badges.include?(:id =&gt; 1)
    # do something
  end
  </code></pre>
  
  <p>It doesn’t seem to work, how I can I write this method properly?</p>