Class: ExportAction

Inherits:
Object
  • Object
show all
Defined in:
lib/asker/exporter/export_action.rb

Overview

Export Output data files

  • YAML, Doc (txt), Gift (ConceptAI, Code) and Moodle XML (ConceptAI, Code)

Instance Method Summary collapse

Instance Method Details

#call(data, project) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/asker/exporter/export_action.rb', line 10

def call(data, project)
  output = Application.instance.config["output"]

  Export2Doc.new.call(data, project) if output["doc"] == "yes"
  Export2Gift.new.call(data, project) if output["gift"] == "yes"
  Export2MoodleXML.new.call(data, project) if output["moodle"] == "yes"
  Export2YAML.new.call(data, project) if output["yaml"] == "yes"
end