module GithubToCanvasQuiz::Parser::Canvas::Answer

Constants

CLASSES

Public Class Methods

for(type, data) click to toggle source
# File lib/github_to_canvas_quiz/parser/canvas/answer.rb, line 26
def self.for(type, data)
  raise UnknownQuestionType, type unless CLASSES.key?(type)

  CLASSES[type].new(data).parse
end