Class: Scorm2004::Manifest::RandomizationControls

Inherits:
Object
  • Object
show all
Includes:
Attributes, VisitorPattern
Defined in:
lib/scorm2004/manifest/randomization_controls.rb

Constant Summary collapse

TIMINGS =
%w( never once onEachNewAttempt )

Instance Attribute Summary collapse

Method Summary

Methods included from Attributes

included

Methods included from VisitorPattern

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

Instance Attribute Details

#randomization_timingString (readonly)

Returns The randomizationTiming attribute of <randomizationControls>.

Returns:

  • (String)

    The randomizationTiming attribute of <randomizationControls>



11
# File 'lib/scorm2004/manifest/randomization_controls.rb', line 11

attribute :token, 'randomizationTiming', vocabulary: TIMINGS, default: 'never'

#reorder_childrenBoolean (readonly)

Returns The reorderChildren attribute of <randomizationControls>.

Returns:

  • (Boolean)

    The reorderChildren attribute of <randomizationControls>



19
# File 'lib/scorm2004/manifest/randomization_controls.rb', line 19

attribute :boolean, 'reorderChildren', default: false

#select_countFixnum (readonly)

Returns The selectCount attribute of <randomizationControls>.

Returns:

  • (Fixnum)

    The selectCount attribute of <randomizationControls>



15
# File 'lib/scorm2004/manifest/randomization_controls.rb', line 15

attribute :non_negative_integer, 'selectCount', allow_nil: true

#selection_timingString (readonly)

Returns The selectionTiming attribute of <randomizationControls>.

Returns:

  • (String)

    The selectionTiming attribute of <randomizationControls>



23
# File 'lib/scorm2004/manifest/randomization_controls.rb', line 23

attribute :token, 'selectionTiming', vocabulary: TIMINGS, default: 'never'