code: def rating(self):
          
          if self._rating == '' and self.details != None and 'rating' in self.details:
              self._rating = self.details['rating']
          return self._rating
docs: Returns the Place's rating, from 0.0 to 5.0, based on user reviews.
  
          This method will return None for places that have no rating.