Add a rich result structure to the ruby interface.