class Qti::V2::Models::Interactions::ExtendedTextInteraction
Public Class Methods
matches(node, parent)
click to toggle source
This will know if a class matches
# File lib/qti/v2/models/interactions/extended_text_interaction.rb, line 7 def self.matches(node, parent) matches = node.xpath('.//xmlns:extendedTextInteraction') return false if matches.empty? raise Qti::UnsupportedSchema if matches.size > 1 new(matches.first, parent) end
Public Instance Methods
expected_lines()
click to toggle source
not used yet
# File lib/qti/v2/models/interactions/extended_text_interaction.rb, line 16 def expected_lines @node.attributes['expectedLines']&.value&.to_i || 0 end
max_strings()
click to toggle source
# File lib/qti/v2/models/interactions/extended_text_interaction.rb, line 20 def max_strings @node.attributes['maxStrings']&.value&.to_i end
min_strings()
click to toggle source
# File lib/qti/v2/models/interactions/extended_text_interaction.rb, line 24 def min_strings @node.attributes['minStrings']&.value&.to_i || 0 end