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'
Instance Attribute Summary collapse
Instance Method Summary
collapse
#add_to_zip, #file_index, parse_file, save_order, set_namespaces
#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse, #set_countable
#before_write_xml, #dup, #index_in_collection, #initialize, #write_xml
Instance Attribute Details
#workbook ⇒ Object
Returns the value of attribute workbook.
84
85
86
|
# File 'lib/rubyXL/objects/document_properties.rb', line 84
def workbook
@workbook
end
|
Instance Method Details
#created_at ⇒ Object
130
131
132
133
|
# File 'lib/rubyXL/objects/document_properties.rb', line 130
def created_at
val = dcterms_created && dcterms_created.value
val && (val.strip.empty? ? nil : Time.parse(val))
end
|
#created_at=(v) ⇒ Object
135
136
137
|
# File 'lib/rubyXL/objects/document_properties.rb', line 135
def created_at=(v)
self.dcterms_created = RubyXL::StringNodeW3C.new(:value => v.iso8601)
end
|
#creator ⇒ Object
114
115
116
|
# File 'lib/rubyXL/objects/document_properties.rb', line 114
def creator
dc_creator && dc_creator.value
end
|
#creator=(v) ⇒ Object
118
119
120
|
# File 'lib/rubyXL/objects/document_properties.rb', line 118
def creator=(v)
self.dc_creator = RubyXL::StringNodeW3C.new(:value => v)
end
|
#modified_at ⇒ Object
139
140
141
142
|
# File 'lib/rubyXL/objects/document_properties.rb', line 139
def modified_at
val = dcterms_modified && dcterms_modified.value
val && (val.strip.empty? ? nil : Time.parse(val))
end
|
#modified_at=(v) ⇒ Object
144
145
146
|
# File 'lib/rubyXL/objects/document_properties.rb', line 144
def modified_at=(v)
self.dcterms_modified = RubyXL::StringNodeW3C.new(:value => v.iso8601)
end
|
#modifier ⇒ Object
122
123
124
|
# File 'lib/rubyXL/objects/document_properties.rb', line 122
def modifier
cp_last_modified_by && cp_last_modified_by.value
end
|
#modifier=(v) ⇒ Object
126
127
128
|
# File 'lib/rubyXL/objects/document_properties.rb', line 126
def modifier=(v)
self.cp_last_modified_by = RubyXL::StringNodeW3C.new(:value => v)
end
|
#xlsx_path ⇒ Object
110
111
112
|
# File 'lib/rubyXL/objects/document_properties.rb', line 110
def xlsx_path
File.join('docProps', 'core.xml')
end
|