title: Extract ruby hash element value from an array of objects
body: <p>I've got the following array </p>
  
  <pre><code>[#&lt;Attachment id: 73, container_id: 1, container_type: "Project", filename: "Eumna.zip", disk_filename: "140307233750_Eumna.zip", filesize: 235303, content_type: nil, digest: "9a10843635b9e9ad4241c96b90f4d331", downloads: 0, author_id: 1, created_on: "2014-03-07 17:37:50", description: "", disk_directory: "2014/03"&gt;, #&lt;Attachment id: 74, container_id: 1, container_type: "Project", filename: "MainApp.cs", disk_filename: "140307233750_MainApp.cs", filesize: 1160, content_type: nil, digest: "6b985033e19c5a88bb5ac4e87ba4c4c2", downloads: 0, author_id: 1, created_on: "2014-03-07 17:37:50", description: "", disk_directory: "2014/03"&gt;]
  </code></pre>
  
  <p>I need to extract the value 73 and 74 from this string  which is Attachment id.</p>
  
  <p>is there any way to extract this value </p>