title: Ruby: find items in hash by values
body: <p>I'm currently working with a ruby hash that looks like the following:</p>
  
  <pre><code>{"employee"=&gt;[{"name"=&gt;"john", "level"=&gt;"1", "position"=&gt;"S1"}, 
                {"name"=&gt;"bill", "level"=&gt;"2", "position"=&gt;"S2"}]}
  </code></pre>
  
  <p>These are two examples of employees and I need to be able to pull employees out by values. For example I'd like to get all employees who's level == 2, or all employees who's position == S1.</p>
  
  <p>How would I do this in Ruby?</p>