Class: Scorm2004::Manifest::Resource

Inherits:
Object
  • Object
show all
Includes:
Attributes, Children, Href, VisitorPattern, XmlBase
Defined in:
lib/scorm2004/manifest/resource.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Href

#href

Methods included from XmlBase

#base

Methods included from Attributes

included

Methods included from Children

included

Methods included from VisitorPattern

included, #initialize, #metadata, #to_hash, #visit

Instance Attribute Details

#dependenciesArray<Dependency> (readonly)

Returns <dependency>.

Returns:



24
# File 'lib/scorm2004/manifest/resource.rb', line 24

has_zero_or_more 'imscp:dependency'

#filesArray<File> (readonly)

Returns <file>.

Returns:

  • (Array<File>)

    <file>



20
# File 'lib/scorm2004/manifest/resource.rb', line 20

has_zero_or_more 'imscp:file'

#identifierString (readonly)

Returns The identifier attribute of <resource>.

Returns:

  • (String)

    The identifier attribute of <resource>



12
# File 'lib/scorm2004/manifest/resource.rb', line 12

attribute :id, 'identifier'

#scorm_typeString (readonly)

Returns The adlcp:scormType attribute of <resource>, sco or asset.

Returns:

  • (String)

    The adlcp:scormType attribute of <resource>, sco or asset



16
# File 'lib/scorm2004/manifest/resource.rb', line 16

attribute :token, 'adlcp:scormType', vocabulary: %w( sco asset )