title: Convert Array of objects to Array with only values
body: <p>I have an array (obj_values) of objects</p>
  <pre><code>[
  #&lt;User id: 1, name: &quot;Kostas&quot;&gt;,
  #&lt;User id: 2, name: &quot;Moufa&quot;&gt;,
  ...
  ]
  </code></pre>
  <p>And I want to convert this into an Array with only the values from above objects, so it will look like:</p>
  <pre><code>[
      1, Kostas
      2, Moufa
  ]
  </code></pre>
  <p>I can do it like this:</p>
  <pre><code>obj_table = []
  obj_values.each do |ext|
            ext.each do |obj|
              obj_table.push([obj.id, obj.name].join(&quot;,&quot;))
            end
  end
  </code></pre>
  <p>However with this approach I need to explicitly specify what attributes I want to push (obj.id and obj.name), is there a way to push whole data from object without the need to specify each attribute separately?</p>