Class: RubyXL::DrawingFile

Inherits:
GenericStorageObject show all
Includes:
RelationshipSupport
Defined in:
lib/rubyXL/objects/storage.rb

Constant Summary collapse

CONTENT_TYPE =
'application/vnd.openxmlformats-officedocument.drawing+xml'.freeze
REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing'.freeze

Constants inherited from GenericStorageObject

GenericStorageObject::SAVE_ORDER

Instance Attribute Summary

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

Attributes inherited from GenericStorageObject

#data, #generic_storage, #xlsx_path

Instance Method Summary collapse

Methods included from RelationshipSupport

#collect_related_objects, included, #load_relationships, #related_objects, #store_relationship

Methods inherited from GenericStorageObject

#add_to_zip, #initialize, parse_file

Constructor Details

This class inherits a constructor from RubyXL::GenericStorageObject

Instance Method Details

#attach_relationship(rid, rf) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/rubyXL/objects/storage.rb', line 41

def attach_relationship(rid, rf)
  case rf
  when RubyXL::ChartFile       then store_relationship(rf) # TODO
  when RubyXL::BinaryImageFile then store_relationship(rf) # TODO
  else store_relationship(rf, :unknown)
  end
end