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, #init_child_nodes, #initialize, #write_xml
Instance Attribute Details
#workbook ⇒ Object
Returns the value of attribute workbook.
96
97
98
|
# File 'lib/rubyXL/objects/document_properties.rb', line 96
def workbook
@workbook
end
|
Instance Method Details
#created_at ⇒ Object
142
143
144
|
# File 'lib/rubyXL/objects/document_properties.rb', line 142
def created_at
dcterms_created && dcterms_created.to_time
end
|
#created_at=(v) ⇒ Object
146
147
148
|
# File 'lib/rubyXL/objects/document_properties.rb', line 146
def created_at=(v)
self.dcterms_created = RubyXL::StringNodeW3C.default(v)
end
|
#creator ⇒ Object
126
127
128
|
# File 'lib/rubyXL/objects/document_properties.rb', line 126
def creator
dc_creator && dc_creator.value
end
|
#creator=(v) ⇒ Object
130
131
132
|
# File 'lib/rubyXL/objects/document_properties.rb', line 130
def creator=(v)
self.dc_creator = v && RubyXL::StringNode.new(:value => v)
end
|
#modified_at ⇒ Object
150
151
152
|
# File 'lib/rubyXL/objects/document_properties.rb', line 150
def modified_at
dcterms_modified && dcterms_modified.to_time
end
|
#modified_at=(v) ⇒ Object
154
155
156
|
# File 'lib/rubyXL/objects/document_properties.rb', line 154
def modified_at=(v)
self.dcterms_modified = RubyXL::StringNodeW3C.default(v)
end
|
#modifier ⇒ Object
134
135
136
|
# File 'lib/rubyXL/objects/document_properties.rb', line 134
def modifier
cp_last_modified_by && cp_last_modified_by.value
end
|
#modifier=(v) ⇒ Object
138
139
140
|
# File 'lib/rubyXL/objects/document_properties.rb', line 138
def modifier=(v)
self.cp_last_modified_by = v && RubyXL::StringNode.new(:value => v)
end
|
#xlsx_path ⇒ Object
122
123
124
|
# File 'lib/rubyXL/objects/document_properties.rb', line 122
def xlsx_path
ROOT.join('docProps', 'core.xml')
end
|