Class: Course::Material::PreloadService

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

Overview

Preloads Materials for a given Course.

Instance Method Summary collapse

Constructor Details

#initialize(course) ⇒ PreloadService


5
6
7
# File 'app/services/course/material/preload_service.rb', line 5

def initialize(course)
  @course = course
end

Instance Method Details

#folder_for_assessment(assessment_id) ⇒ Course::Material::Folder


11
12
13
# File 'app/services/course/material/preload_service.rb', line 11

def folder_for_assessment(assessment_id)
  folders_for_assessment_hash[assessment_id]
end