Is there any documentation, or advice?
You can use Active Model
Take a look here.
Look at the source code at Github.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!