Class: Scorm2004::Manifest::RollupRule

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

Constant Summary collapse

CONDITIONS =
%w( all any none atLeastCount atLeastPercent )

Instance Attribute Summary collapse

Method Summary

Methods included from Attributes

included

Methods included from Children

included

Methods included from VisitorPattern

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

Instance Attribute Details

#child_activity_setString (readonly)

Returns The childActivitySet of <rollupRule>.

Returns:

  • (String)

    The childActivitySet of <rollupRule>



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

attribute :token, 'childActivitySet', vocabulary: CONDITIONS, default: CONDITIONS.first

#minimum_countFixnum (readonly)

Returns The minimumCount attribute of <rollupRule>.

Returns:

  • (Fixnum)

    The minimumCount attribute of <rollupRule>



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

attribute :non_negative_integer, 'minimumCount', default: 0

#minimum_percentFloat (readonly)

Returns The minimumPercent attribute of <rollupRule>.

Returns:

  • (Float)

    The minimumPercent attribute of <rollupRule>



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

attribute :decimal, 'minimumPercent', range: 0.0..1.0, default: 0.0

#rollup_actionRollupAction (readonly)

Returns <imsss:rollupAction>.

Returns:



28
# File 'lib/scorm2004/manifest/rollup_rule.rb', line 28

has_one_and_only_one 'imsss:rollupAction'

#rollup_conditionsRollupConditions (readonly)

Returns <imsss:rollupConditions>.

Returns:



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

has_one_and_only_one 'imsss:rollupConditions'