An Interactor is just a glorified method. Basically a class with a call method that performs a verb. In our specific case though, we've built some sort of abstraction so all our interactors return a "Result" (like you would in rust) to communicate how that user intention succeded or not. Also, our interactors always leave an event (we use railseventstore.org) behind for auditing and inter-domain communication
Hi Dan,
An Interactor is just a glorified method. Basically a class with a
call
method that performs a verb. In our specific case though, we've built some sort of abstraction so all our interactors return a "Result" (like you would in rust) to communicate how that user intention succeded or not. Also, our interactors always leave an event (we use railseventstore.org) behind for auditing and inter-domain communicationOkay, yeah I've used something similar called ActiveInteraction. github.com/AaronLasseigne/active_i...
It also returns a result object similar to what you are talking about.