Hi Angel, I guess that you refer to ActiveModel Attribute Methods. I’m not pretty sure but I think that you suggest to use attribute methods on our response object right? The idea is to use a response object so the implementation is up to you but what SimpleResponse does is provide “a lightweight syntactic sugar for your response objects” so it provides methods as success?, failure? and query methods for boolean attributes (e.g: if a work attribute is set to true or false, then you can call both works and works?).

Best regards! :-)

Written by

Frontend Developer 👨‍💻 Follow me on Twitter 🐦 https://twitter.com/giovannibenussi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store