class Qti::V2::Models::Interactions::OrderingInteraction

Public Class Methods

matches(node, parent) click to toggle source
# File lib/qti/v2/models/interactions/ordering_interaction.rb, line 6
def self.matches(node, parent)
  match = node.at_xpath('.//xmlns:orderInteraction')
  return false unless match.present?
  new(node, parent)
end

Public Instance Methods

shuffled?() click to toggle source
# File lib/qti/v2/models/interactions/ordering_interaction.rb, line 12
def shuffled?
  node.at_xpath('.//xmlns:orderInteraction').attributes['shuffle']&.value&.downcase == 'true'
end