Class: Qti::V1::Models::Numerics::ScoringNode

Inherits:
Object
  • Object
show all
Defined in:
lib/qti/v1/models/numerics/scoring_node.rb

Instance Method Summary collapse

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_nodeObject



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_nodeObject



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_nodeObject



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_nodeObject



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