Class: DarwinCore::Extension
- Inherits:
-
Object
- Object
- DarwinCore::Extension
- Includes:
- Ingester
- Defined in:
- lib/dwc_archive/extension.rb
Overview
Represents extensions of DarwinCore Archive
Instance Attribute Summary collapse
-
#coreid ⇒ Object
(also: #id)
readonly
Returns the value of attribute coreid.
Attributes included from Ingester
#data, #encoding, #fields, #fields_separator, #file_path, #ignore_headers, #line_separator, #properties, #quote_character, #size
Instance Method Summary collapse
-
#initialize(dwc, data) ⇒ Extension
constructor
A new instance of Extension.
Methods included from Ingester
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
#coreid ⇒ Object (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 |