lib/rubyXL/objects/relationships.rb in rubyXL-2.1.1 vs lib/rubyXL/objects/relationships.rb in rubyXL-2.2.0
- old
+ new
@@ -1,17 +1,21 @@
require 'rubyXL/objects/ooxml_object'
module RubyXL
+ class RID < OOXMLObject
+ define_attribute(:'r:id', :string, :required => true)
+ end
+
class Relationship < OOXMLObject
define_attribute(:Id, :string)
define_attribute(:Type, :string)
define_attribute(:Target, :string)
define_element_name 'Relationship'
end
# http://www.schemacentral.com/sc/ooxml/e-ssml_calcChain.html
- class WorkbookRelationships < OOXMLObject
+ class WorkbookRelationships < OOXMLTopLevelObject
define_child_node(RubyXL::Relationship, :collection => true, :accessor => :relationships)
define_element_name 'Relationships'
set_namespaces('xmlns' => 'http://schemas.openxmlformats.org/package/2006/relationships')
attr_accessor :workbook