implementing __eq__ and __ne__ over ObjectResource