Sha256: c84d811030f1b16d6d22688dcfd29adb9af062af3c9a7f5cdab871ad422a86f1
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 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 find core in meta.xml, is meta.xml valid?") unless @data @id = @data[:id][:attributes] get_attributes(DarwinCore::CoreFileError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dwc-archive-0.9.10 | lib/dwc-archive/core.rb |