Class: GithubToCanvasQuiz::Parser::Canvas::Answer::Base
- Inherits:
-
Object
- Object
- GithubToCanvasQuiz::Parser::Canvas::Answer::Base
- Includes:
- Helpers
- Defined in:
- lib/github_to_canvas_quiz/parser/canvas/answer/base.rb
Direct Known Subclasses
FillInMultipleBlanks, Matching, MultipleAnswers, MultipleChoice, MultipleDropdowns, ShortAnswer, TrueFalse
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Base
constructor
A new instance of Base.
Methods included from Helpers
#choose_text, #clean_html, #remove_canvas_cruft
Constructor Details
#initialize(data) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/github_to_canvas_quiz/parser/canvas/answer/base.rb', line 12 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/github_to_canvas_quiz/parser/canvas/answer/base.rb', line 10 def data @data end |