class Qti::V1::Models::Interactions::StringInteraction
Public Class Methods
matches(node, parent)
click to toggle source
This will know if a class matches
# File lib/qti/v1/models/interactions/string_interaction.rb, line 7 def self.matches(node, parent) matches = node.xpath('.//xmlns:render_fib') return false if matches.empty? new(node, parent) end
Private Instance Methods
rcardinality()
click to toggle source
# File lib/qti/v1/models/interactions/string_interaction.rb, line 15 def rcardinality @rcardinality ||= @node.at_xpath('.//xmlns:response_str/@rcardinality').value end