Class: Scorm2004::Manifest::RollupRule
- Inherits:
-
Object
- Object
- Scorm2004::Manifest::RollupRule
- 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
-
#child_activity_set ⇒ String
readonly
The
childActivitySet
of <rollupRule>. -
#minimum_count ⇒ Fixnum
readonly
The
minimumCount
attribute of <rollupRule>. -
#minimum_percent ⇒ Float
readonly
The
minimumPercent
attribute of <rollupRule>. -
#rollup_action ⇒ RollupAction
readonly
<imsss:rollupAction>.
-
#rollup_conditions ⇒ RollupConditions
readonly
<imsss:rollupConditions>.
Method Summary
Methods included from Attributes
Methods included from Children
Methods included from VisitorPattern
included, #initialize, #metadata, #to_hash, #visit
Instance Attribute Details
#child_activity_set ⇒ String (readonly)
Returns The childActivitySet
of <rollupRule>.
12 |
# File 'lib/scorm2004/manifest/rollup_rule.rb', line 12 attribute :token, 'childActivitySet', vocabulary: CONDITIONS, default: CONDITIONS.first |
#minimum_count ⇒ Fixnum (readonly)
Returns The minimumCount
attribute of <rollupRule>.
16 |
# File 'lib/scorm2004/manifest/rollup_rule.rb', line 16 attribute :non_negative_integer, 'minimumCount', default: 0 |
#minimum_percent ⇒ Float (readonly)
Returns 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_action ⇒ RollupAction (readonly)
Returns <imsss:rollupAction>.
28 |
# File 'lib/scorm2004/manifest/rollup_rule.rb', line 28 has_one_and_only_one 'imsss:rollupAction' |
#rollup_conditions ⇒ RollupConditions (readonly)
Returns <imsss:rollupConditions>.
24 |
# File 'lib/scorm2004/manifest/rollup_rule.rb', line 24 has_one_and_only_one 'imsss:rollupConditions' |