title: Access object wrapped in curly braces
body: <p>I have this object that is returned from from a query using some Ancestry Gem methods:</p>
  
  <pre><code> @category = ItemsCategory.find(params[:id_and_name]).subtree.arrange
  </code></pre>
  
  <p>This is the result:</p>
  
  <pre><code>category = {#&lt;ItemsCategory id: 16, name: "Coffee Tables", created_at: "2014-04-02 19:50:26", updated_at: "2014-06-03 21:03:03", title_tag: nil, description_tag: nil, ancestry: "144/1/7"&gt;=&gt;{}}
  </code></pre>
  
  <p>How can I get to the different keys? If I say @category.id I get @category has no method id</p>