Guys, I have a doubt about the correct way to implement code with rails.
I have a functionality that saves some sales data from some operators who currently view them from spreadsheets.
(nsu, value, installments, date, flag, etc.)
I am implementing an integration with the API of some of these operators so that I can have this automatic function without having to upload some operators to Excel.
As I already have all the functionality working perfectly, I’m just going to fetch the data in a different way (for each operator) I thought about creating an empty model (without attributes) of some of these operators to place these functions within these models.
I do not know if i was clear.
but the idea would be to create a model for example for Stone where it would have the functions of get_token, get_sales, etc.. everything about that operator
I don’t know if it’s correct, and how would I generate this model? Could it generate normally?
rails g model Stone --skip-migration