Class: Qti::V2::Models::Choices::SimpleAssociableChoice

Inherits:
SimpleChoice show all
Defined in:
lib/qti/v2/models/choices/simple_associable_choice.rb

Constant Summary

Constants inherited from SimpleChoice

Qti::V2::Models::Choices::SimpleChoice::PROHIBITED_NODE_NAMES

Constants inherited from Base

Base::BODY_ELEMENTS_CSS, Base::CHOICE_ELEMENTS_CSS, Base::INTERACTION_ELEMENTS_CSS

Instance Attribute Summary

Attributes inherited from Models::Base

#doc, #manifest, #package_root, #path, #resource

Instance Method Summary collapse

Methods inherited from SimpleChoice

#identifier, #initialize, #item_body

Methods inherited from Base

#qti_version

Methods inherited from Models::Base

#css_with_single_check, from_path!, #initialize, #parse_html, #parse_xml, #preprocess_xml_doc, #raise_unsupported, #remap_href_path, #sanitize_content!, #xpath_with_single_check

Constructor Details

This class inherits a constructor from Qti::V2::Models::Choices::SimpleChoice

Instance Method Details

#match_maxObject



6
7
8
# File 'lib/qti/v2/models/choices/simple_associable_choice.rb', line 6

def match_max
  @_match_max ||= @node.attributes['matchMax'].value || 0
end

#match_minObject



10
11
12
# File 'lib/qti/v2/models/choices/simple_associable_choice.rb', line 10

def match_min
  @_match_min ||= @node.attributes['matchMin'].value || 0
end