Class: RubyXL::CorePropertiesFile
Constant Summary
collapse
- CONTENT_TYPE =
'application/vnd.openxmlformats-package.core-properties+xml'.freeze
- REL_TYPE =
'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties'.freeze
OOXMLTopLevelObject::ROOT, OOXMLTopLevelObject::SAVE_ORDER
Instance Attribute Summary collapse
#root
#local_namespaces
Instance Method Summary
collapse
#add_to_zip, #file_index, parse_file, set_namespaces
#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml
Instance Attribute Details
permalink
#workbook ⇒ Object
Returns the value of attribute workbook.
94
95
96
|
# File 'lib/rubyXL/objects/document_properties.rb', line 94
def workbook
@workbook
end
|
Instance Method Details
permalink
#created_at ⇒ Object
[View source]
140
141
142
|
# File 'lib/rubyXL/objects/document_properties.rb', line 140
def created_at
dcterms_created && dcterms_created.to_time
end
|
[View source]
124
125
126
|
# File 'lib/rubyXL/objects/document_properties.rb', line 124
def creator
dc_creator && dc_creator.value
end
|
permalink
#creator=(v) ⇒ Object
[View source]
128
129
130
|
# File 'lib/rubyXL/objects/document_properties.rb', line 128
def creator=(v)
self.dc_creator = v && RubyXL::StringNode.new(:value => v)
end
|
permalink
#modified_at ⇒ Object
[View source]
148
149
150
|
# File 'lib/rubyXL/objects/document_properties.rb', line 148
def modified_at
dcterms_modified && dcterms_modified.to_time
end
|
permalink
#modifier ⇒ Object
[View source]
132
133
134
|
# File 'lib/rubyXL/objects/document_properties.rb', line 132
def modifier
cp_last_modified_by && cp_last_modified_by.value
end
|
permalink
#modifier=(v) ⇒ Object
[View source]
136
137
138
|
# File 'lib/rubyXL/objects/document_properties.rb', line 136
def modifier=(v)
self.cp_last_modified_by = v && RubyXL::StringNode.new(:value => v)
end
|
permalink
#xlsx_path ⇒ Object
[View source]
120
121
122
|
# File 'lib/rubyXL/objects/document_properties.rb', line 120
def xlsx_path
ROOT.join('docProps', 'core.xml')
end
|