Class: Qti::V1::Models::Numerics::ScoringNode
- Inherits:
-
Object
- Object
- Qti::V1::Models::Numerics::ScoringNode
- Defined in:
- lib/qti/v1/models/numerics/scoring_node.rb
Instance Method Summary collapse
- #equal_node ⇒ Object
- #gt_node ⇒ Object
- #gte_node ⇒ Object
-
#initialize(node) ⇒ ScoringNode
constructor
A new instance of ScoringNode.
- #lte_node ⇒ Object
Constructor Details
#initialize(node) ⇒ ScoringNode
Returns a new instance of ScoringNode.
6 7 8 |
# File 'lib/qti/v1/models/numerics/scoring_node.rb', line 6 def initialize(node) @node = node end |
Instance Method Details
#equal_node ⇒ Object
10 11 12 |
# File 'lib/qti/v1/models/numerics/scoring_node.rb', line 10 def equal_node @_equal_node ||= @node.at_xpath('.//xmlns:varequal') end |
#gt_node ⇒ Object
22 23 24 |
# File 'lib/qti/v1/models/numerics/scoring_node.rb', line 22 def gt_node @_gt_node ||= @node.at_xpath('.//xmlns:vargt') end |
#gte_node ⇒ Object
14 15 16 |
# File 'lib/qti/v1/models/numerics/scoring_node.rb', line 14 def gte_node @_gte_node ||= @node.at_xpath('.//xmlns:vargte') end |
#lte_node ⇒ Object
18 19 20 |
# File 'lib/qti/v1/models/numerics/scoring_node.rb', line 18 def lte_node @_lte_node ||= @node.at_xpath('.//xmlns:varlte') end |