Class: Scorm2004::Manifest::RollupCondition

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

Constant Summary collapse

CONDITIONS =
[
  'satisfied',
  'objectiveStatusKnown',
  'objectiveMeasureKnown',
  'completed',
  'activityProgressKnown',
  'attempted',
  'attemptLimitExceeded',
  'timeLimitExceeded',
  'outsideAvailableTimeRange'
]

Instance Attribute Summary collapse

Method Summary

Methods included from Attributes

included

Methods included from VisitorPattern

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

Instance Attribute Details

#conditionString (readonly)

Returns The condition attribute of <rollupCondition>.

Returns:

  • (String)

    The condition attribute of <rollupCondition>



25
# File 'lib/scorm2004/manifest/rollup_condition.rb', line 25

attribute :token, 'condition', vocabulary: CONDITIONS

#operatorString (readonly)

Returns The operator attribute of <rollupCondition>.

Returns:

  • (String)

    The operator attribute of <rollupCondition>



21
# File 'lib/scorm2004/manifest/rollup_condition.rb', line 21

attribute :token, 'operator', vocabulary: %w( not noOp ), default: 'noOp'