Class: Qti::V1::Models::Assessment

Inherits:
Base show all
Defined in:
lib/qti/v1/models/assessment.rb

Constant Summary

Constants inherited from Models::Base

Models::Base::ELEMENTS_REMAP

Instance Method Summary collapse

Methods inherited from Base

#qti_version

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::Models::Base

Instance Method Details

#assessment_itemsObject



11
12
13
# File 'lib/qti/v1/models/assessment.rb', line 11

def assessment_items
  @doc.xpath('.//xmlns:item')
end

#titleObject



7
8
9
# File 'lib/qti/v1/models/assessment.rb', line 7

def title
  @title ||= xpath_with_single_check('.//xmlns:assessment/@title')&.content
end