# frozen_string_literal: true

wb = xlsx_package.workbook
wb.add_worksheet(name: "Erfolgskriterien") do |sheet|
  sheet.add_row SuccessCriterion.column_names

  @report.elements.each do |element|
    element.success_criteria.each do |sc|
      sheet.add_row sc.attributes.values
    end
  end
end
