Class: Uniword::Ooxml::CoreProperties

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/uniword/ooxml/core_properties.rb

Overview

Represents docProps/core.xml - Core document metadata properties

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CoreProperties

Returns a new instance of CoreProperties.



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/uniword/ooxml/core_properties.rb', line 56

def initialize(attributes = {})
  super
  now = DateTime.now
  @created ||= Types::DctermsCreatedType.new(
    value: now,
    type: "dcterms:W3CDTF",
  )
  @modified ||= Types::DctermsModifiedType.new(
    value: now,
    type: "dcterms:W3CDTF",
  )
end