Class: GithubToCanvasQuiz::Parser::Canvas::Quiz
- Inherits:
-
Object
- Object
- GithubToCanvasQuiz::Parser::Canvas::Quiz
- Includes:
- Helpers
- Defined in:
- lib/github_to_canvas_quiz/parser/canvas/quiz.rb
Overview
Parses a quiz from the Canvas API and returns a Quiz
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Quiz
constructor
A new instance of Quiz.
- #parse ⇒ Object
Methods included from Helpers
#choose_text, #clean_html, #remove_canvas_cruft
Constructor Details
#initialize(data) ⇒ Quiz
Returns a new instance of Quiz.
12 13 14 |
# File 'lib/github_to_canvas_quiz/parser/canvas/quiz.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/quiz.rb', line 10 def data @data end |