Generate report from Ruby API

Thank you for your answer! Actually I need the dimension and the color of each component in the model saved to a CSV file.
So I guess I should find the components somehow in the model and get their properties. Can you send the link of a thread where I can find information about how to “walk” the model hierarchy?
I found this one: Getting a list of Component from current collection
but I don’t think this is what I need…
Thank you!