I quite new ruby (rails) developer and I need to interface a complex object behavior. I'll try to explain as much as I can.
I've an object A in which I would like to contains an array of entities(B) which have a boolean base and a type. If this boolean is true some other properties can be set (and input fields can be showed in dashboard).
I don't really want to create a separate object(B).
I know I could use
I will create these classes in aim to manage them all specifically Thanks all !