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

Returns a new instance of DispatchZip.



6
7
8
9
10
11
12
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 6

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 4

def body
  @body
end

#dispatch_idObject

Returns the value of attribute dispatch_id.



4
5
6
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 4

def dispatch_id
  @dispatch_id
end

#filenameObject

Returns the value of attribute filename.



4
5
6
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 4

def filename
  @filename
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 4

def type
  @type
end