Class: Course::Material::ZipDownloadService

Inherits:
Object
  • Object
show all
Defined in:
app/services/course/material/zip_download_service.rb

Class Method Summary collapse

Class Method Details

.download_and_zip(folder, materials) ⇒ String

Downloads the materials and zip them.

Parameters:

Returns:

  • (String)

    The path to the zip file.


9
10
11
12
13
# File 'app/services/course/material/zip_download_service.rb', line 9

def download_and_zip(folder, materials)
  service = new(folder, materials)
  service.send(:download_to_base_dir)
  service.send(:zip_base_dir)
end