Class: DarwinCore::Extension

Inherits:
Object
  • Object
show all
Includes:
Ingester
Defined in:
lib/dwc_archive/extension.rb

Overview

Represents extensions of DarwinCore Archive

Instance Attribute Summary collapse

Attributes included from Ingester

#data, #encoding, #fields, #fields_separator, #file_path, #ignore_headers, #line_separator, #properties, #quote_character, #size

Instance Method Summary collapse

Methods included from Ingester

#read

Constructor Details

#initialize(dwc, data) ⇒ Extension

Returns a new instance of Extension



10
11
12
13
14
15
16
17
# File 'lib/dwc_archive/extension.rb', line 10

def initialize(dwc, data)
  @dwc = dwc
  @archive = @dwc.archive
  @path = @archive.files_path
  @data = data
  @coreid = @data[:coreid][:attributes]
  init_attributes
end

Instance Attribute Details

#coreidObject (readonly) Also known as: id

Returns the value of attribute coreid



7
8
9
# File 'lib/dwc_archive/extension.rb', line 7

def coreid
  @coreid
end