(a) Appointment; qualifications; term. The city council shall appoint a city attorney who shall be a member of the State Bar of Georgia and shall have actively practiced law for a minimum of five years. The city attorney shall serve at the pleasure of the city council. (b) Duties of the city attorney; compensation. It shall be the duty of the city attorney to serve as legal advisor to the mayor, city council, city manager, and other city officials with respect to the affairs of the city; to draw proposed ordinances when requested to do so; to inspect and determine the legality and form of all agreements, contracts, franchises, and other instruments with which the city may be concerned; to attend meetings of the city council upon request of the city council; and to perform such other duties as may be required by virtue of the position of city attorney. The compensation of the city attorney shall be set by the city council.