Class: Course::Assessment::Question::ProgrammingImportService

Inherits:
Object
  • Object
show all
Defined in:
app/services/course/assessment/question/programming_import_service.rb

Overview

Imports the provided programming package into the question. This evaluates the package to obtain the set of tests, as well as extracts the templates from the package to be stored together with the question.

Class Method Summary collapse

Class Method Details

.import(question, attachment) ⇒ Object

Imports the programming package into the question.

Parameters:


12
13
14
# File 'app/services/course/assessment/question/programming_import_service.rb', line 12

def import(question, attachment)
  new(question, attachment).send(:import)
end