class Eol::DataObjects

Contains all metadata about the object as submitted to EOL by the contributing content partner.

Attributes

data_objects[RW]

@return [Array] An Array of Hashes

exemplar[RW]

@return [FalseClass or TrueClass] status of exemplar

identifier[RW]

@return [Integer] an identifier number

richness_score[RW]

@return [Integer] EOL has developed a 'Richness Score' for taxon pages which provides a simple summary number for comparing the amount of information available for different pages. @see eol.org/info/521

scientific_name[RW]

@return [String]the binomial nomenclature in zoology

taxon_concepts[RW]

@return [Array] An Array of Hashes

Public Class Methods

new(response) click to toggle source
# File lib/eol/data_objects.rb, line 25
def initialize(response)
  self.identifier = response['identifier']
  self.scientific_name = response['scientificName']
  self.exemplar = response['exemplar']
  self.richness_score = response['richness_score']
  self.taxon_concepts = response['taxonConcepts']
  self.data_objects = response['dataObjects']
end

Public Instance Methods

each() { |identifier| ... } click to toggle source
# File lib/eol/data_objects.rb, line 34
def each
  yield @identifier
  yield @scientific_name
  yield @exemplar
  yield @richness_score
  yield @taxon_concepts
  yield @data_objects
end