Class: DwcaHunter::ResourceBirdLife
- Defined in:
- lib/dwca_hunter/resources/birdlife.rb
Instance Attribute Summary
Attributes inherited from Resource
#abbr, #command, #download_path, #title, #url, #uuid
Instance Method Summary collapse
- #download ⇒ Object
-
#initialize(opts = {}) ⇒ ResourceBirdLife
constructor
A new instance of ResourceBirdLife.
- #make_dwca ⇒ Object
- #needs_unpack? ⇒ Boolean
Methods inherited from Resource
gunzip, #needs_download?, unzip
Constructor Details
#initialize(opts = {}) ⇒ ResourceBirdLife
Returns a new instance of ResourceBirdLife.
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/dwca_hunter/resources/birdlife.rb', line 3 def initialize(opts = {}) @command = "bird-life" @title = "BirdLife International" @uuid = "b1d8de7a-ab96-455f-acd8-f3fff2d7d169" @data = [] @extensions = [] @url = "http://www.birdlife.org/datazone/userfiles"\ "/file/Species/Taxonomy/BirdLife_Checklist_Version_70.zip" @download_path = File.join(Dir.tmpdir, "dwca_hunter", "birdlife", "fake.zip") @clades = {} super end |
Instance Method Details
#download ⇒ Object
21 22 |
# File 'lib/dwca_hunter/resources/birdlife.rb', line 21 def download end |
#make_dwca ⇒ Object
24 25 26 27 |
# File 'lib/dwca_hunter/resources/birdlife.rb', line 24 def make_dwca organize_data generate_dwca end |
#needs_unpack? ⇒ Boolean
17 18 19 |
# File 'lib/dwca_hunter/resources/birdlife.rb', line 17 def needs_unpack? false end |