def convert_rating_question(moodle_question, canvas_question)
      choices = create_rating_choices(moodle_question)
      canvas_question.responses = []

      moodle_question.choices.each_with_index do |answer, answer_idx|
        response = {:id => "response#{answer_idx + 1}", :choices => []}

        # add dropdown to the question text
        canvas_question.material = canvas_question.material.to_s + "<p>#{answer[:content]} [#{response[:id]}]</p>"

        choices.each_with_index do |choice, choice_idx|
          response[:choices] << {:id => "#{moodle_question.id}_choice_#{answer_idx}_#{choice_idx}", :text => choice}
        end

        canvas_question.responses << response
      end
    end
def convert_rating_question(moodle_question, canvas_question)
      choices = create_rating_choices(moodle_question)
      canvas_question.responses = []

      moodle_question.choices.each_with_index do |answer, answer_idx|
        response = {:id => "response#{answer_idx + 1}", :choices => []}

        # add dropdown to the question text
        canvas_question.material = canvas_question.material.to_s + "<p>#{answer[:content]} [#{response[:id]}]</p>"

        choices.each_with_index do |choice, choice_idx|
          response[:choices] << {:id => "#{moodle_question.id}_choice_#{answer_idx}_#{choice_idx}", :text => choice}
        end

        canvas_question.responses << response
      end
    end
For l..x rating questions