Move request to codeclimate api into class