class OoxmlParser::HeaderFooterReference

Class for parsing ‘w:headerReference`, `w:footerReference` object

Attributes

id[RW]

@return [String] id of reference

type[RW]

@return [String] type of reference

Public Instance Methods

parse(node) click to toggle source

Parse HeaderFooterReference @param [Nokogiri::XML:Node] node with HeaderFooterReference @return [HeaderFooterReference] result of parsing

# 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