Class: Scorm2004::Manifest::RuleCondition
- Inherits:
-
Object
- Object
- Scorm2004::Manifest::RuleCondition
- 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
-
#condition ⇒ String
readonly
The
condition
attribute of <ruleCondition>. -
#measure_threshold ⇒ Float
readonly
The
measureThreshold
attribute of <ruleCondition>. -
#operator ⇒ String
readonly
The
operator
attribute of <ruleCondition>. -
#referenced_objective ⇒ String
readonly
The
referencedObjective
attribute of <ruleCondition>.
Method Summary
Methods included from Attributes
Methods included from VisitorPattern
included, #initialize, #metadata, #to_hash, #visit
Instance Attribute Details
#condition ⇒ String (readonly)
Returns The condition
attribute of <ruleCondition>.
36 |
# File 'lib/scorm2004/manifest/rule_condition.rb', line 36 attribute :token, 'condition', vocabulary: CONDITIONS |
#measure_threshold ⇒ Float (readonly)
Returns 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 |
#operator ⇒ String (readonly)
Returns 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_objective ⇒ String (readonly)
Returns The referencedObjective
attribute of <ruleCondition>.
28 |
# File 'lib/scorm2004/manifest/rule_condition.rb', line 28 attribute :any_uri, 'referencedObjective', allow_nil: true |