Class: RubyXL::CorePropertiesFile
Constant Summary
collapse
- CONTENT_TYPE =
'application/vnd.openxmlformats-package.core-properties+xml'
- REL_TYPE =
'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties'
OOXMLTopLevelObject::ROOT, OOXMLTopLevelObject::SAVE_ORDER
Instance Attribute Summary collapse
#root
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
#workbook ⇒ Object
Returns the value of attribute workbook.
95
96
97
|
# File 'lib/rubyXL/objects/document_properties.rb', line 95
def workbook
@workbook
end
|
Instance Method Details
#created_at ⇒ Object
141
142
143
144
|
# File 'lib/rubyXL/objects/document_properties.rb', line 141
def created_at
val = dcterms_created && dcterms_created.value
val && (val.strip.empty? ? nil : Time.parse(val))
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.new(:value => v.iso8601)
end
|
#creator ⇒ Object
125
126
127
|
# File 'lib/rubyXL/objects/document_properties.rb', line 125
def creator
dc_creator && dc_creator.value
end
|
#creator=(v) ⇒ Object
129
130
131
|
# File 'lib/rubyXL/objects/document_properties.rb', line 129
def creator=(v)
self.dc_creator = RubyXL::StringNodeW3C.new(:value => v)
end
|
#modified_at ⇒ Object
150
151
152
153
|
# File 'lib/rubyXL/objects/document_properties.rb', line 150
def modified_at
val = dcterms_modified && dcterms_modified.value
val && (val.strip.empty? ? nil : Time.parse(val))
end
|
#modified_at=(v) ⇒ Object
155
156
157
|
# File 'lib/rubyXL/objects/document_properties.rb', line 155
def modified_at=(v)
self.dcterms_modified = RubyXL::StringNodeW3C.new(:value => v.iso8601)
end
|
#modifier ⇒ Object
133
134
135
|
# File 'lib/rubyXL/objects/document_properties.rb', line 133
def modifier
cp_last_modified_by && cp_last_modified_by.value
end
|
#modifier=(v) ⇒ Object
137
138
139
|
# File 'lib/rubyXL/objects/document_properties.rb', line 137
def modifier=(v)
self.cp_last_modified_by = RubyXL::StringNodeW3C.new(:value => v)
end
|
#xlsx_path ⇒ Object
121
122
123
|
# File 'lib/rubyXL/objects/document_properties.rb', line 121
def xlsx_path
ROOT.join('docProps', 'core.xml')
end
|