Sha256: 534184f66792788a806873b865b914e3fec7779017bf2f5a753990f6c03ebc39

Contents?: true

Size: 435 Bytes

Versions: 41

Compression:

Stored size: 435 Bytes

Contents

class DarwinCore
  class Extension
    include DarwinCore::Ingester
    attr_reader :coreid
    alias :id :coreid

    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)
    end

  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
dwc-archive-0.8.3 lib/dwc-archive/extension.rb
dwc-archive-0.8.2 lib/dwc-archive/extension.rb
dwc-archive-0.8.1 lib/dwc-archive/extension.rb
dwc-archive-0.8.0 lib/dwc-archive/extension.rb
dwc-archive-0.7.18 lib/dwc-archive/extension.rb
dwc-archive-0.7.17 lib/dwc-archive/extension.rb
dwc-archive-0.7.16 lib/dwc-archive/extension.rb
dwc-archive-0.7.15 lib/dwc-archive/extension.rb
dwc-archive-0.7.14 lib/dwc-archive/extension.rb
dwc-archive-0.7.13 lib/dwc-archive/extension.rb
dwc-archive-0.7.12 lib/dwc-archive/extension.rb
dwc-archive-0.7.11 lib/dwc-archive/extension.rb
dwc-archive-0.7.10 lib/dwc-archive/extension.rb
dwc-archive-0.7.9 lib/dwc-archive/extension.rb
dwc-archive-0.7.8 lib/dwc-archive/extension.rb
dwc-archive-0.7.7 lib/dwc-archive/extension.rb
dwc-archive-0.7.6 lib/dwc-archive/extension.rb
dwc-archive-0.7.5 lib/dwc-archive/extension.rb
dwc-archive-0.7.4 lib/dwc-archive/extension.rb
dwc-archive-0.7.3 lib/dwc-archive/extension.rb