class OoxmlParser::PageBorders

Class for parsing ‘w:pgBorders` PageBorders object

Attributes

display[R]

@return [Symbol] display value

offset_from[R]

@return [Symbol] offset from value

Public Instance Methods

parse(node) click to toggle source

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

# File lib/ooxml_parser/docx_parser/document_structure/page_properties/page_properties/page_borders.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'display'
      @display = value.value.to_sym
    when 'offsetFrom'
      @offset_from = value.value.to_sym
    end
  end
  self
end