Adapter from Active Model Serializers, to work in Sinatra from a more practical way with models
Saulo Santiago, Adriano Tadao
MIT