Super to merge hash from parent class
<p>I have the following private method in V6 of my API:</p>

<pre><code>def format_rentals(rentals)
  rentals.map do |rental|
    {
      start_time: rental.reservation_start_time.to_i,
       end_time: rental.reservation_end_time.to_i
     }
 end
</code></pre>

<p>On V10 of the API.</p>

<p>V10 inherits from V9, V9 from V8, so on... </p>

<p>I would like to a new attribute to the method. </p>

<p>is there a way to not cut and paste the whole method onto V10 and then add the new attribute. </p>

<p>What I don't want to do:</p>

<pre><code>def format_rentals(rentals)
  rentals.map do |rental|
    {
      start_time: rental.reservation_start_time.to_i,
      end_time: rental.reservation_end_time.to_i,
      status: rental.status ### Adding this on V10

     }
 end
</code></pre>

<p>I would love to call super and merge to the hash, so far I've tried: </p>

<pre><code>def format_rentals(rentals)
  rentals.map do |rental|
    super.merge(status: rental.status)
   end
end
</code></pre>

<p>I probably don't have the syntax correct... Thanks for the help!</p>