This is fairly trivial, but it bothers me to no end that I haven't yet found the answer using Google or this forum. But how can i turn this into one line? Without have to declare rooms an array above?
rooms = []
hwdata.availability.each {|room| rooms << room.name}