Class: RubyXL::Chartsheet

Inherits:
OOXMLTopLevelObject show all
Includes:
RelationshipSupport
Defined in:
lib/rubyXL/objects/chartsheet.rb

Overview

Constant Summary collapse

CONTENT_TYPE =
'application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml'
REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet'

Constants inherited from OOXMLTopLevelObject

OOXMLTopLevelObject::ROOT, OOXMLTopLevelObject::SAVE_ORDER

Instance Attribute Summary collapse

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

Attributes inherited from OOXMLTopLevelObject

#root

Instance Method Summary collapse

Methods included from RelationshipSupport

#attach_relationship, #collect_related_objects, included, #load_relationships, #related_objects, #store_relationship

Methods inherited from OOXMLTopLevelObject

#add_to_zip, #file_index, parse_file, set_namespaces

Methods included from OOXMLObjectInstanceMethods

#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml

Instance Attribute Details

#relsObject

Returns the value of attribute rels.



66
67
68
# File 'lib/rubyXL/objects/chartsheet.rb', line 66

def rels
  @rels
end

#sheet_idObject

Returns the value of attribute sheet_id.



67
68
69
# File 'lib/rubyXL/objects/chartsheet.rb', line 67

def sheet_id
  @sheet_id
end

#sheet_nameObject

Returns the value of attribute sheet_name.



67
68
69
# File 'lib/rubyXL/objects/chartsheet.rb', line 67

def sheet_name
  @sheet_name
end

#stateObject

Returns the value of attribute state.



66
67
68
# File 'lib/rubyXL/objects/chartsheet.rb', line 66

def state
  @state
end

#workbookObject

Returns the value of attribute workbook.



67
68
69
# File 'lib/rubyXL/objects/chartsheet.rb', line 67

def workbook
  @workbook
end

Instance Method Details

#xlsx_pathObject



86
87
88
# File 'lib/rubyXL/objects/chartsheet.rb', line 86

def xlsx_path
  ROOT.join('xl', 'chartsheets', "sheet#{file_index}.xml")
end