Maps one ruby object to another