Class: DwcaHunter::ResourceReptilesChecklist

Inherits:
Resource
  • Object
show all
Defined in:
lib/dwca_hunter/resources/reptiles_checklist.rb

Instance Attribute Summary

Attributes inherited from Resource

#abbr, #command, #download_path, #title, #url, #uuid

Instance Method Summary collapse

Methods inherited from Resource

gunzip, #needs_download?, unzip

Constructor Details

#initialize(opts = {}) ⇒ ResourceReptilesChecklist

Returns a new instance of ResourceReptilesChecklist.



7
8
9
10
11
12
13
14
15
16
# File 'lib/dwca_hunter/resources/reptiles_checklist.rb', line 7

def initialize(opts = {})
  @command = "reptile-database"
  @title = "The Reptile Database"
  @uuid = "c24e0905-4980-4e1d-aff2-ee0ef54ea1f8"
  @data = []
  @extensions = []
  @download_path = File.join(Dir.tmpdir, 'dwca_hunter',
                             'reptilesdb', 'fake.tar.gz')
  super
end

Instance Method Details

#downloadObject



22
23
# File 'lib/dwca_hunter/resources/reptiles_checklist.rb', line 22

def download
end

#make_dwcaObject



25
26
27
28
# File 'lib/dwca_hunter/resources/reptiles_checklist.rb', line 25

def make_dwca
  organize_data
  generate_dwca
end

#needs_unpack?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/dwca_hunter/resources/reptiles_checklist.rb', line 18

def needs_unpack?
  false
end