def start_ride(self, vehicle_id): """ Wraps a `run_transaction` call that starts a ride. Arguments: vehicle_id {UUID} -- The vehicle's unique ID. """ return run_transaction( sessionmaker(bind=self.engine), lambda session: start_ride_txn(session, vehicle_id))
def start_ride(self, vehicle_id, user_email): """ Wraps a `run_transaction` call that starts a ride. Arguments: vehicle_id {UUID} -- The vehicle's unique ID. """ return run_transaction( self.sessionfactory, lambda session: start_ride_txn(session, vehicle_id, user_email))
def start_ride(self, city, rider_id, vehicle_id): """ Wraps a `run_transaction` call that starts a ride. Arguments: city {String} -- The ride's city. rider_id {UUID} -- The user's unique ID. vehicle_id {UUID} -- The vehicle's unique ID. """ return run_transaction( self.sessionmaker, lambda session: start_ride_txn( session, city, rider_id, vehicle_id))