Class: GithubToCanvasQuiz::Parser::Canvas::Answer::ShortAnswer

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

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