Class: GithubToCanvasQuiz::Parser::Canvas::Answer::MultipleDropdowns

Inherits:
Base
  • Object
show all
Defined in:
lib/github_to_canvas_quiz/parser/canvas/answer/multiple_dropdowns.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Helpers

#choose_text, #clean_html, #remove_canvas_cruft

Constructor Details

This class inherits a constructor from GithubToCanvasQuiz::Parser::Canvas::Answer::Base

Instance Method Details

#parseObject



8
9
10
11
12
13
14
15
# File 'lib/github_to_canvas_quiz/parser/canvas/answer/multiple_dropdowns.rb', line 8

def parse
  Model::Answer::MultipleDropdowns.new(
    title: title,
    text: data['text'],
    comments: comments,
    blank_id: data['blank_id']
  )
end