Sha256: 552f0d5de63ea54e1b7d2764edc29d3ec703fead839fe55439c7861569bc8d15

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

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

    def initialize(archive, data)
      @archive = archive
      @path = @archive.files_path
      @data = data
      @properties = @data[:attributes]
      @coreid = @data[:coreid][:attributes]
      @encoding = @properties[:encoding] || 'UTF-8'
      @quote_character = @properties[:fieldsEnclosedBy] || ""
      @line_separator = @properties[:linesTerminatedBy] || "\n"
      @ignore_headers = @properties[:ignoreHeaderLines] ? [1, true].include?(@properties[:ignoreHeaderLines]) : false
      @field_separator = get_field_separator
      @file_path = get_file_path
      @fields = get_fields
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dwc-archive-0.2.1 lib/dwc-archive/extension.rb
dwc-archive-0.2.0 lib/dwc-archive/extension.rb