Class: Axlsx::Override

Inherits:
AbstractContentType show all
Defined in:
lib/axlsx/content_type/override.rb

Overview

An override content part. These parts are automatically created by for you based on the content of your package.

Constant Summary collapse

NODE_NAME =

Serialization node name for this object

'Override'

Instance Attribute Summary collapse

Attributes inherited from AbstractContentType

#content_type

Instance Method Summary collapse

Methods inherited from AbstractContentType

#initialize

Methods included from OptionsParser

#parse_options

Constructor Details

This class inherits a constructor from Axlsx::AbstractContentType

Instance Attribute Details

#part_nameString Also known as: PartName

The name and location of the part.

Returns:

  • (String)

13
14
15
# File 'lib/axlsx/content_type/override.rb', line 13

def part_name
  @part_name
end

Instance Method Details

#to_xml_string(str = '') ⇒ Object

Serializes this object to xml


21
22
23
# File 'lib/axlsx/content_type/override.rb', line 21

def to_xml_string(str = '')
  super(NODE_NAME, str)
end