Class: ScormEngine::Models::DispatchZip
- Inherits:
-
Object
- Object
- ScormEngine::Models::DispatchZip
- Defined in:
- lib/scorm_engine/models/dispatch_zip.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#dispatch_id ⇒ Object
Returns the value of attribute dispatch_id.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#options ⇒ Object
writeonly
Sets the attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DispatchZip
constructor
A new instance of DispatchZip.
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 = .dup @dispatch_id = [:dispatch_id] @type = [:type] @filename = [:filename] @body = [:body] end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
7 8 9 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 7 def body @body end |
#dispatch_id ⇒ Object
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 |
#filename ⇒ Object
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
4 5 6 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 4 def (value) @options = value end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/scorm_engine/models/dispatch_zip.rb', line 7 def type @type end |