Class: GithubToCanvasQuiz::Parser::Canvas::Answer::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/github_to_canvas_quiz/parser/canvas/answer/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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