lib/dwc-archive/extension.rb in dwc-archive-0.5.1 vs lib/dwc-archive/extension.rb in dwc-archive-0.5.2

- old
+ new

@@ -2,11 +2,12 @@ class Extension include DarwinCore::Ingester attr_reader :coreid alias :id :coreid - def initialize(archive, data) - @archive = archive + def initialize(dwc, data) + @dwc = dwc + @archive = @dwc.archive @path = @archive.files_path @data = data @coreid = @data[:coreid][:attributes] raise ExtensionFileError("Extension has no coreid information") unless @coreid get_attributes(ExtensionFileError)