title: Extracting multiple key-value attributes from an array
body: <p>I have an array like the one you see at the bottom of this post (specifically, it's a list of fb friends returned from fb_graph).</p>
  
  <p>If I wanted to go through this hash and pick out just the 'identifier' attribute from each record, I know I could do something like this:</p>
  
  <pre><code>@fb_friends.map &amp;:identifier  # returns ["123", "134",...]
  </code></pre>
  
  <p>My question is what if I want to pick out multiple attributes from each record. Basically I want to grab the identifier, name and picture. Naively I want to do something like:</p>
  
  <pre><code>@fb_friends.map &amp;:identifier, :name, :picture
  </code></pre>
  
  <p>But of course that doesn't work. Any idea how I can pull this off?</p>
  
  <pre><code>[#&lt;FbGraph::User:0x007f9ec1fd63c8 @identifier="1868", @endpoint="https://graph.facebook.com /----",  @access_token="AAAFGzU8vU0gBAEK2q3WYEUJNZAczuO6UPOLqbscwvZALr1gW1ePBqpyarh0uTv6alA2YyNvIzZBcvvIBEYy4i5ulMJZCpWcZD", @cached_collections={}, @name="REMOVED", @first_name=nil, @middle_name=nil, @last_name=nil, @gender=nil, @locale=nil, @languages=[], @link=nil, @username=nil, @third_party_id=nil, @timezone=nil, @verified=nil, @about=nil, @bio=nil, @education=[], @email=nil, @interested_in=[], @political=nil, @favorite_teams=[], @quotes=nil, @relationship_status=nil, @religion=nil, @relationship=nil, @website=nil, @work=[], @sports=[], @favorite_athletes=[], @inspirational_people=[], @mobile_phone=nil, @installed=nil&gt;, #&lt;FbGraph::User:0x007f9ec1fda9f0 @identifier="3??1", @endpoint="https://graph.facebook.com/----", @access_token="AAAFGzU8vU0gBAEK2q3WYEUJNZAczuO6UPOLqbscwvZALr1gW1ePBqpyarh0uTv6alA2YyNvIzZBcvvIBEYy4i5ulMJZCpWcZD", @cached_collections={}, @name="Removed", @first_name=nil, @middle_name=nil, @last_name=nil, @gender=nil, @locale=nil, @languages=[], @link=nil, @username=nil, @third_party_id=nil, @timezone=nil, @verified=nil, @about=nil, @bio=nil, @education=[], @email=nil, @interested_in=[], @political=nil, @favorite_teams=[], @quotes=nil, @relationship_status=nil, @religion=nil, @relationship=nil, @website=nil, @work=[], @sports=[], @favorite_athletes=[], @inspirational_people=[], @mobile_phone=nil, @installed=nil&gt;, #&lt;FbGraph::User:0x007f9ec1fe5030
  </code></pre>