extracting pure ruby object from model