class Qti::V1::Models::Choices::FillBlankChoice
Public Class Methods
new(node, parent)
click to toggle source
# File lib/qti/v1/models/choices/fill_blank_choice.rb, line 6 def initialize(node, parent) @node = node copy_paths_from_item(parent) end
Public Instance Methods
identifier()
click to toggle source
# File lib/qti/v1/models/choices/fill_blank_choice.rb, line 11 def identifier @identifier ||= @node.attributes['respident']&.value || @node.attributes['ident']&.value end
item_body()
click to toggle source
# File lib/qti/v1/models/choices/fill_blank_choice.rb, line 20 def item_body @item_body ||= begin node = @node.dup inner_content = return_inner_content!(node) sanitize_content!(inner_content) end end
parent_identifier()
click to toggle source
# File lib/qti/v1/models/choices/fill_blank_choice.rb, line 16 def parent_identifier @parent_identifier ||= @node.parent.parent.attributes['ident']&.value end