Sha256: 4425d5cfb8f64670b1d1731834e443237a0b6743c90a1d82b352eb6d2f771308
Contents?: true
Size: 607 Bytes
Versions: 5
Compression:
Stored size: 607 Bytes
Contents
class DarwinCore class Extension def initialize(archive, extension) @archive = archive @path = @archive.files_path @extension = extension end def data @extension end def properties @extension[:attributes] end def file_path file = @extension[:files][:location] File.join(@path, file) end def coreid @extension[:coreid][:attributes] end def fields @extension[:field] = [@extension[:field]] unless @extension[:field].class == Array @extension[:field].map {|f| f[:attributes]} end end end
Version data entries
5 entries across 5 versions & 1 rubygems