Class: ScormEngine::Models::DispatchZip

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DispatchZip

Returns a new instance of DispatchZip.



9
10
11
12
13
14
15
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 9

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.



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

def body
  @body
end

#dispatch_idObject

Returns the value of attribute dispatch_id.



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

def dispatch_id
  @dispatch_id
end

#filenameObject

Returns the value of attribute filename.



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

def filename
  @filename
end

#options=(value) ⇒ Object

Sets the attribute options

Parameters:

  • value

    the value to set the attribute options to.



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

def options=(value)
  @options = value
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end