I want to be able to take the id from another collection, and use that as the key for a hash. Then I would like to be able to apply various attributes to each. It would be something like:
@books = Hash.new
@books[key].title = "A Title"
@books[key].condition = "Poor"
@books[key].rating = "Excellent"
or something to that effect. Is this even possible with some tweaks?
Thanks for your time!
Edit: I should have added that it is undesirable to create a Class in this case, although I may end up having to do that.
You can use multidimensional Hash?