Sha256: ea5c3d31a0a8081dd6769620864ee60e2e816ab8b3c08bfb95425e082853e6bb

Contents?: true

Size: 395 Bytes

Versions: 4

Compression:

Stored size: 395 Bytes

Contents

class DarwinCore
  class Extension
    include DarwinCore::Ingester
    attr_reader :coreid

    def initialize(archive, data)
      @archive = archive
      @path = @archive.files_path
      @data = data
      @coreid = @data[:coreid][:attributes] 
      raise ExtensionFileError("Extension has no coreid information") unless @coreid
      get_attributes(ExtensionFileError)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dwc-archive-0.3.1 lib/dwc-archive/extension.rb
dwc-archive-0.3.0 lib/dwc-archive/extension.rb
dwc-archive-0.2.3 lib/dwc-archive/extension.rb
dwc-archive-0.2.2 lib/dwc-archive/extension.rb