Refactorized get() and find_all() methods in base resource class