class OoxmlParser::HeaderFooterReference
Class for parsing ‘w:headerReference`, `w:footerReference` object
Attributes
@return [String] id of reference
@return [String] type of reference
Public Instance Methods
Source
# File lib/ooxml_parser/docx_parser/document_structure/page_properties/page_properties/header_footer_reference.rb, line 15 def parse(node) node.attributes.each do |key, value| case key when 'id' @id = value.to_s when 'type' @type = value.to_s end end self end
Parse HeaderFooterReference
@param [Nokogiri::XML:Node] node with HeaderFooterReference
@return [HeaderFooterReference] result of parsing