Class: ScormEngine::Models::DispatchZip

Inherits:
Base
  • Object
show all
Defined in:
lib/scorm_engine/models/dispatch_zip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_hash

Constructor Details

#initialize(options = {}) ⇒ DispatchZip

rubocop:disable Lint/MissingSuper


25
26
27
28
29
30
31
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 25

def initialize(options = {})
  @options = options.dup
  @dispatch_id = options[:dispatch_id]
  @type = options[:type]&.upcase
  @filename = options[:filename]
  @body = options[:body]
end

Instance Attribute Details

#bodyString

Returns:

  • (String)

22
23
24
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 22

def body
  @body
end

#dispatch_idString

The external identification of the dispatch.

Returns:

  • (String)

7
8
9
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 7

def dispatch_id
  @dispatch_id
end

#filenameString

Returns:

  • (String)

17
18
19
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 17

def filename
  @filename
end

#typeString

The type of ZIP package to generate.

Returns:

  • (String)

    (SCORM12, SCORM2004-3RD, AICC)


12
13
14
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 12

def type
  @type
end