Sha256: 419571d207f7450a016b08e2486d80c5bc2fbd3d0ee041577cee583356f6455d

Contents?: true

Size: 505 Bytes

Versions: 21

Compression:

Stored size: 505 Bytes

Contents

class DarwinCore
  class Core
    include DarwinCore::Ingester
    attr_reader :id 
    def initialize(archive)
      @archive = archive
      @path = @archive.files_path
      root_key = @archive.meta.keys[0]
      @data = @archive.meta[root_key][:core]
      raise CoreFileError("Cannot found core in meta.xml, is meta.xml valid?") unless @data
      @id = @data[:id][:attributes]
      raise CoreFileError("Cannot find core identifier") unless @id
      get_attributes(CoreFileError)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
dwc-archive-0.5.1 lib/dwc-archive/core.rb
dwc-archive-0.5.0 lib/dwc-archive/core.rb
dwc-archive-0.4.14 lib/dwc-archive/core.rb
dwc-archive-0.4.13 lib/dwc-archive/core.rb
dwc-archive-0.4.12 lib/dwc-archive/core.rb
dwc-archive-0.4.11 lib/dwc-archive/core.rb
dwc-archive-0.4.10 lib/dwc-archive/core.rb
dwc-archive-0.4.9 lib/dwc-archive/core.rb
dwc-archive-0.4.8 lib/dwc-archive/core.rb
dwc-archive-0.4.7 lib/dwc-archive/core.rb
dwc-archive-0.4.6 lib/dwc-archive/core.rb
dwc-archive-0.4.5 lib/dwc-archive/core.rb
dwc-archive-0.4.4 lib/dwc-archive/core.rb
dwc-archive-0.4.3 lib/dwc-archive/core.rb
dwc-archive-0.4.2 lib/dwc-archive/core.rb
dwc-archive-0.4.1 lib/dwc-archive/core.rb
dwc-archive-0.4.0 lib/dwc-archive/core.rb
dwc-archive-0.3.1 lib/dwc-archive/core.rb
dwc-archive-0.3.0 lib/dwc-archive/core.rb
dwc-archive-0.2.3 lib/dwc-archive/core.rb