class OoxmlParser::LineEnd

Class for working with LineEnd data

Attributes

length[RW]
type[RW]
width[RW]

Public Instance Methods

parse(node) click to toggle source

Parse LineEnd object @param node [Nokogiri::XML:Element] node to parse @return [LineEnd] result of parsing

# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/line/line_end.rb, line 11
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'type'
      @type = value.value.to_sym
    when 'w'
      @width = value_to_symbol(value)
    when 'len'
      @length = value_to_symbol(value)
    end
  end
  self
end