Looping through an array within a .new object : Sorry, for the awful title.  I'm not sure how to even phrase this question without showing it.

I'm currently trying to test out dynamic buttons for a kid app using the ruby on rails gem Rubychy. 

This is the way it would be done statically.

    keyboard = Rubychy::DataTypes::Keyboard.new(
       :to => 'myname',
       :hidden => false,
       :responses => [
         
          Rubychy::DataTypes::KeyboardResponse.new(
             type: "text",
             body: blah,
          ),
          Rubychy::DataTypes::KeyboardResponse.new(
             type: "text",
             body: blah1,
          )
         
        ]
         
    )


as you can see the responses are predefined.

what i need to do is loop through an array and call Rubychy::DataTypes::KeyboardResponse.new() each time.

While this is terribly incorrect, it shows what i need to loop.  I've tried a bunch of different ways to do this and I've been caught up overtime.

    keyboard = Rubychy::DataTypes::Keyboard.new(
       :to => 'myname',
       :hidden => false,
       :responses => [
         
         parsed_response["values"].each do |val|
           
          Rubychy::DataTypes::KeyboardResponse.new(
             type: "text",
             body: val.name,
          )
             
         end
         
        ]
         
    ) 


Can anyone assist with this?

thank you in advance.
