wip exercise to task implementation
This commit is contained in:
15
app/services/proforma_service/export_task.rb
Normal file
15
app/services/proforma_service/export_task.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ProformaService
|
||||
class ExportTask < ServiceBase
|
||||
def initialize(exercise: nil)
|
||||
@exercise = exercise
|
||||
end
|
||||
|
||||
def execute
|
||||
@task = ConvertExerciseToTask.call(exercise: @exercise)
|
||||
exporter = Proforma::Exporter.new(@task)
|
||||
exporter.perform
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user