class OoxmlParser::ContentTypeDefault

Class for data from ‘Default` tag

Attributes

content_type[R]

@return [String] content type

extension[R]

@return [String] extension

Public Instance Methods

parse(node) click to toggle source

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

# File lib/ooxml_parser/common_parser/common_data/content_types/content_type_default.rb, line 14
def parse(node)
  node.attributes.each do |key, value|
    case key
    when 'ContentType'
      @content_type = value.value.to_s
    when 'Extension'
      @extension = value.value.to_s
    end
  end
  self
end