Make gem. Use Rails-api. Refactoring model builder