Class: ScormEngine::Models::DispatchZip
- Defined in:
- lib/scorm_engine/models/dispatch_zip.rb
Instance Attribute Summary collapse
- #body ⇒ String
-
#dispatch_id ⇒ String
The external identification of the dispatch.
- #filename ⇒ String
-
#type ⇒ String
The type of ZIP package to generate.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DispatchZip
constructor
rubocop:disable Lint/MissingSuper.
Methods inherited from Base
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 = .dup @dispatch_id = [:dispatch_id] @type = [:type]&.upcase @filename = [:filename] @body = [:body] end |
Instance Attribute Details
#body ⇒ String
22 23 24 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 22 def body @body end |
#dispatch_id ⇒ String
The external identification of the dispatch.
7 8 9 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 7 def dispatch_id @dispatch_id end |
#filename ⇒ String
17 18 19 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 17 def filename @filename end |
#type ⇒ String
The type of ZIP package to generate.
12 13 14 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 12 def type @type end |