Class: Lcms::Engine::LtiExporter

Inherits:
Object
  • Object
show all
Defined in:
app/services/lcms/engine/lti_exporter.rb

Class Method Summary collapse

Class Method Details

.perform(resource) ⇒ Object



11
12
13
14
15
16
17
# File 'app/services/lcms/engine/lti_exporter.rb', line 11

def perform(resource)
  cartridge = create_cartridge resource

  files = [{ name: 'imsmanifest.xml', data: cartridge.manifest }]
  files.concat cartridge.links
  create_zip_stream(files).read
end