Class: DocumentExporter::Gdoc::TeacherMaterial
- Defined in:
- lib/document_exporter/gdoc/teacher_material.rb
Constant Summary collapse
- FOLDER_NAME =
'Teacher Materials'
Constants inherited from Base
Base::GOOGLE_API_CLIENT_UPLOAD_RETRIES, Base::GOOGLE_API_CLIENT_UPLOAD_TIMEOUT, Base::GOOGLE_API_UPLOAD_OPTIONS, Base::VERSION_RE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#create_gdoc_folders, #export_to, gdoc_key, #url, url_for
Methods inherited from Base
#included_materials, #initialize, #ordered_materials, pdf_key
Constructor Details
This class inherits a constructor from DocumentExporter::Base
Instance Method Details
#export ⇒ Object
8 9 10 11 12 13 14 |
# 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 |