[Style] Use self.class to print out class names

Thanks https://github.com/CocoaPods/Resolver/commit/e62e63cb8153bd97da3de778dc4edbd07de53b5d#commitcomment-8118504