Class: Scorm2004::Manifest::RuleCondition

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

Constant Summary collapse

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

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 <ruleCondition>.

Returns:

  • (String)

    The condition attribute of <ruleCondition>



36
# File 'lib/scorm2004/manifest/rule_condition.rb', line 36

attribute :token,   'condition',           vocabulary: CONDITIONS

#measure_thresholdFloat (readonly)

Returns The measureThreshold attribute of <ruleCondition>.

Returns:

  • (Float)

    The measureThreshold attribute of <ruleCondition>



32
# File 'lib/scorm2004/manifest/rule_condition.rb', line 32

attribute :decimal, 'measureThreshold',    range: -1.0..1.0, allow_nil: true

#operatorString (readonly)

Returns The operator attribute of <ruleCondition>.

Returns:

  • (String)

    The operator attribute of <ruleCondition>



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

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

#referenced_objectiveString (readonly)

Returns The referencedObjective attribute of <ruleCondition>.

Returns:

  • (String)

    The referencedObjective attribute of <ruleCondition>



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

attribute :any_uri,  'referencedObjective', allow_nil: true