Am I Doing it All Wrong? Ruby Class Objects

Yea, which is why I suggest OpenStructs as they allow both [] and dot notation for accessing the data fields.


ADD: By the way, that DataForge example could be easily modified to make it JSON compatible.

1 Like