Class: Qti::V2::Models::Interactions::OrderingInteraction
- Inherits:
-
ChoiceInteraction
- Object
- Models::Base
- Base
- BaseInteraction
- ChoiceInteraction
- Qti::V2::Models::Interactions::OrderingInteraction
- Defined in:
- lib/qti/v2/models/interactions/ordering_interaction.rb
Constant Summary
Constants inherited from Base
Base::BODY_ELEMENTS_CSS, Base::CHOICE_ELEMENTS_CSS, Base::INTERACTION_ELEMENTS_CSS
Constants inherited from Models::Base
Instance Attribute Summary
Attributes inherited from BaseInteraction
Attributes inherited from Models::Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ChoiceInteraction
#answers, #max_choices_count, #min_choices_count
Methods inherited from BaseInteraction
#initialize, #scoring_data_structs, #xpath_with_single_check
Methods inherited from Base
Methods inherited from Models::Base
#css_with_single_check, from_path!, #initialize, #parse_xml, #remap_href_path, #remap_unknown_tags_transformer, #sanitize_config, #sanitize_content!, #xpath_with_single_check
Constructor Details
This class inherits a constructor from Qti::V2::Models::Interactions::BaseInteraction
Class Method Details
.matches(node) ⇒ Object
8 9 10 11 12 |
# File 'lib/qti/v2/models/interactions/ordering_interaction.rb', line 8 def self.matches(node) match = node.at_xpath('.//xmlns:orderInteraction') return false unless match.present? new(node) end |
Instance Method Details
#shuffled? ⇒ Boolean
14 15 16 |
# File 'lib/qti/v2/models/interactions/ordering_interaction.rb', line 14 def shuffled? node.at_xpath('.//xmlns:orderInteraction').attributes['shuffle']&.value&.downcase == 'true' end |