Class: RubyXL::CoreProperties
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
#add_to_zip, parse_file, set_namespaces, #xlsx_path
#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.
82
83
84
|
# File 'lib/rubyXL/objects/document_properties.rb', line 82
def workbook
@workbook
end
|
Class Method Details
.content_type ⇒ Object
112
113
114
|
# File 'lib/rubyXL/objects/document_properties.rb', line 112
def self.content_type
'application/vnd.openxmlformats-package.core-properties+xml'
end
|
.xlsx_path ⇒ Object
108
109
110
|
# File 'lib/rubyXL/objects/document_properties.rb', line 108
def self.xlsx_path
File.join('docProps', 'core.xml')
end
|
Instance Method Details
#created_at ⇒ Object
132
133
134
135
|
# File 'lib/rubyXL/objects/document_properties.rb', line 132
def created_at
val = dcterms_created && dcterms_created.value
val && (val.strip.empty? ? nil : Time.parse(val))
end
|
#created_at=(v) ⇒ Object
137
138
139
|
# File 'lib/rubyXL/objects/document_properties.rb', line 137
def created_at=(v)
self.dcterms_created = RubyXL::StringNodeW3C.new(:value => v.iso8601)
end
|
#creator ⇒ Object
116
117
118
|
# File 'lib/rubyXL/objects/document_properties.rb', line 116
def creator
dc_creator && dc_creator.value
end
|
#creator=(v) ⇒ Object
120
121
122
|
# File 'lib/rubyXL/objects/document_properties.rb', line 120
def creator=(v)
self.dc_creator = RubyXL::StringNodeW3C.new(:value => v)
end
|
#modified_at ⇒ Object
141
142
143
144
|
# File 'lib/rubyXL/objects/document_properties.rb', line 141
def modified_at
val = dcterms_modified && dcterms_modified.value
val && (val.strip.empty? ? nil : Time.parse(val))
end
|
#modified_at=(v) ⇒ Object
146
147
148
|
# File 'lib/rubyXL/objects/document_properties.rb', line 146
def modified_at=(v)
self.dcterms_modified = RubyXL::StringNodeW3C.new(:value => v.iso8601)
end
|
#modifier ⇒ Object
124
125
126
|
# File 'lib/rubyXL/objects/document_properties.rb', line 124
def modifier
cp_last_modified_by && cp_last_modified_by.value
end
|
#modifier=(v) ⇒ Object
128
129
130
|
# File 'lib/rubyXL/objects/document_properties.rb', line 128
def modifier=(v)
self.cp_last_modified_by = RubyXL::StringNodeW3C.new(:value => v)
end
|