Method: DocumentExporter::Gdoc::Base#create_gdoc_folders
- Defined in:
- lib/document_exporter/gdoc/base.rb
#create_gdoc_folders(folder) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/document_exporter/gdoc/base.rb', line 33 def create_gdoc_folders(folder) id = drive_service.create_folder(folder) folders = [id] folders << drive_service.create_folder(DocumentExporter::Gdoc::TeacherMaterial::FOLDER_NAME, id) folders << drive_service.create_folder(DocumentExporter::Gdoc::StudentMaterial::FOLDER_NAME, id) folders.each(&method(:delete_previous_versions_from)) end |