class DocumentExporter::Gdoc::TeacherMaterial

Constants

FOLDER_NAME

Public Instance Methods

export() click to toggle source
# File lib/document_exporter/gdoc/teacher_material.rb, line 8
def export
  return gdoc_folder unless @options[:excludes].present?

  scope = @document.teacher_materials
  material_ids = scope.where(id: included_materials(context_type: :gdoc)).pluck(:id)
  gdoc_folder_tmp(material_ids)
end