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