class OoxmlParser::DocxBlip
Class for parsing ‘blipFill`
Attributes
alpha_channel[RW]
file_reference[RW]
@return [FileReference] image structure
path[RW]
path_to_media_file[RW]
Public Instance Methods
parse(node)
click to toggle source
Parse DocxBlip
object @param node [Nokogiri::XML:Element] node to parse @return [DocxBlip] result of parsing
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/picture/docx_blip.rb, line 21 def parse(node) blip_node = node.xpath('a:blip', 'xmlns:a' => 'http://schemas.openxmlformats.org/drawingml/2006/main').first return self if blip_node.nil? @file_reference = FileReference.new(parent: self).parse(blip_node) self end
to_str()
click to toggle source
@return [String] result of convert of object to string
# File lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/picture/docx_blip.rb, line 14 def to_str path_to_media_file end