Method: Datasets::PenguinsRawData::SpeciesBase#initialize

Defined in:
lib/datasets/penguins.rb

#initializeSpeciesBase

Returns a new instance of SpeciesBase.



25
26
27
28
29
30
31
32
# File 'lib/datasets/penguins.rb', line 25

def initialize
  super
  species = self.class.name.split("::").last.downcase
  @metadata.id = "palmerpenguins-#{species}"
  @metadata.url = self.class::URL
  @metadata.licenses = ["CC0-1.0"]
  @data_path = cache_dir_path + "#{species}.csv"
end