[colug-432] deserialize objects in Ruby

Rick Hornsby richardjhornsby at gmail.com
Tue Sep 29 13:16:38 EDT 2015


At the risk of replying to my own post - I stripped away everything but what was absolutely necessary to demonstrate what I'm running into and created a small project 'animal_shelter'[1]  I also posted the gist of the output from shelter.rb showing how the serialized JSON is correct, but the deserialized object is screwed up[2]

I think I maybe sort of understand why the deserialized Dog is not right - but don't know how to fix it properly.  Perhaps my entire approach to subclassing and serialization is flawed?


thanks!

[1] https://github.com/rjhornsby/animal_shelter
[2] https://gist.github.com/rjhornsby/3966ac3ee383ed6553c5


More information about the colug-432 mailing list