class OoxmlParser::CommentAuthor
Class for parsing ‘cmAuthor` tag
Attributes
@return [String] Author
Initials
Public Instance Methods
Source
# File lib/ooxml_parser/pptx_parser/presentation/comment_authors/comment_author.rb, line 20 def parse(node) node.attributes.each do |key, value| case key when 'id' @id = value.value.to_i when 'name' @name = value.value.to_s when 'initials' @initials = value.value.to_s when 'lastIdx' @last_index = value.value.to_i when 'clrIdx' @color_index = value.value.to_i end end self end
Parse CommentAuthor
object @param node [Nokogiri::XML:Element] node to parse @return [CommentAuthor] result of parsing