Class: Qti::V1::Models::Choices::LogicalIdentifierChoice
- Inherits:
-
Base
- Object
- Models::Base
- Base
- Qti::V1::Models::Choices::LogicalIdentifierChoice
- Defined in:
- lib/qti/v1/models/choices/logical_identifier_choice.rb
Constant Summary
Constants inherited from Models::Base
Instance Attribute Summary
Attributes inherited from Models::Base
#doc, #manifest, #package_root, #path
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(node, parent) ⇒ LogicalIdentifierChoice
constructor
A new instance of LogicalIdentifierChoice.
- #item_body ⇒ Object
Methods inherited from Base
#qti_version, #return_inner_content!
Methods inherited from Models::Base
#css_with_single_check, from_path!, #object_tag_transformer, #parse_html, #parse_xml, #preprocess_xml_doc, #remap_href_path, #remap_unknown_tags_transformer, #sanitize_config, #sanitize_content!, #xpath_with_single_check
Constructor Details
#initialize(node, parent) ⇒ LogicalIdentifierChoice
Returns a new instance of LogicalIdentifierChoice.
8 9 10 11 |
# File 'lib/qti/v1/models/choices/logical_identifier_choice.rb', line 8 def initialize(node, parent) @node = node copy_paths_from_item(parent) end |
Instance Method Details
#identifier ⇒ Object
13 14 15 |
# File 'lib/qti/v1/models/choices/logical_identifier_choice.rb', line 13 def identifier @identifier ||= @node.attributes['ident'].value end |
#item_body ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/qti/v1/models/choices/logical_identifier_choice.rb', line 17 def item_body @item_body ||= begin node = @node.dup inner_content = return_inner_content!(node) sanitize_content!(inner_content) end end |