Class: GithubToCanvasQuiz::Parser::Canvas::Answer::Matching

Inherits:
Base
  • Object
show all
Defined in:
lib/github_to_canvas_quiz/parser/canvas/answer/matching.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
16
# File 'lib/github_to_canvas_quiz/parser/canvas/answer/matching.rb', line 8

def parse
  Model::Answer::Matching.new(
    title: title,
    text: data['text'],
    comments: comments,
    left: data['left'],
    right: data['right']
  )
end