Generate ruby classes from data