Exemplo n.º 1
0
    def unavailable(self, bike: Bike):
        """Sets a bike's available property to False"""

        logging.info('Changing bike availability to false')
        bike.available = False
Exemplo n.º 2
0
    def available(self, bike: Bike):
        """Sets a bike's available property to True"""

        logging.info('Changing bike availability to true')
        bike.available = True