src/models/microservices.rb
# Validates that the question has a correct or incorrect answer
Validates that the question has a correct or incorrect answer
Validates that the question has a correct or incorrect answer
def validate_question(question_id, answer)
    question_info = {ID: question_id, answer: answer}
    score = post_to_url(@questions_verifier_conn, QUESTIONS_VERIFIER_KEY, question_info)
    @user_score += score["score"].to_i
    score["answer"]
  end
def validate_question ( question_id , answer ) question_info = { ID : question_id , answer : answer } score = post_to_url ( @questions_verifier_conn , QUESTIONS_VERIFIER_KEY , question_info ) @user_score += score [ "score" ] . to_i score [ "answer" ] end
Validates that the question has a correct or incorrect answer
Validates that the question has a correct or incorrect answer
question_id
answer