lib/dwc-archive/extension.rb in dwc-archive-0.2.1 vs lib/dwc-archive/extension.rb in dwc-archive-0.2.2

- old
+ new

@@ -5,18 +5,12 @@ def initialize(archive, data) @archive = archive @path = @archive.files_path @data = data - @properties = @data[:attributes] - @coreid = @data[:coreid][:attributes] - @encoding = @properties[:encoding] || 'UTF-8' - @quote_character = @properties[:fieldsEnclosedBy] || "" - @line_separator = @properties[:linesTerminatedBy] || "\n" - @ignore_headers = @properties[:ignoreHeaderLines] ? [1, true].include?(@properties[:ignoreHeaderLines]) : false - @field_separator = get_field_separator - @file_path = get_file_path - @fields = get_fields + @coreid = @data[:coreid][:attributes] + raise ExtensionFileError("Extension has no coreid information") unless @coreid + get_attributes(ExtensionFileError) end end end