1 min readJun 8, 2018
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! :-)