How do they torture Quasimodo in the hunchback of Notre Dame?

They tortured Quasimodo in the hunchback of notre dame when they did the flogging in the town square after he tried to kidnap Esmerelda the gypsy girl. They tied him on a big wooden wheel and turned him around while the torturer whipped him on the back. Then they turned the wheel around for another hour for the crowd to throw things at him.