Sha256: 5a1e77456f3172e462b5968f6a2bcd3e2a20ec63a3772834a3990cd15b5011cd
Contents?: true
Size: 567 Bytes
Versions: 4
Compression:
Stored size: 567 Bytes
Contents
class DarwinCore class Core include DarwinCore::Ingester attr_reader :id def initialize(dwc) @dwc = dwc @archive = @dwc.archive @path = @archive.files_path root_key = @archive.meta.keys[0] @data = @archive.meta[root_key][:core] raise DarwinCore::CoreFileError.new("Cannot found core in meta.xml, is meta.xml valid?") unless @data @id = @data[:id][:attributes] raise DarwinCore::CoreFileError.new("Cannot find core identifier") unless @id get_attributes(DarwinCore::CoreFileError) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dwc-archive-0.9.3 | lib/dwc-archive/core.rb |
dwc-archive-0.9.2 | lib/dwc-archive/core.rb |
dwc-archive-0.9.1 | lib/dwc-archive/core.rb |
dwc-archive-0.9.0 | lib/dwc-archive/core.rb |