class Eol::Hierarchies

Contains metadata about a hierarchy such as the provider name and source URL, as well as lists all the taxa which are the root taxa of the taxonomic tree

Attributes

contributor[RW]

@return [String] the name of the Hierarchies contributor

date_submitted[RW]

@return [String] date of submission

roots[RW]

@return [Array] An Array of Hashes

source[RW]

@return [String] the Hierarchies source

title[RW]

@return [String] the Hierarchies title

Public Class Methods

new(response) click to toggle source
# File lib/eol/hierarchies.rb, line 19
def initialize(response)
  self.title = response['title']
  self.contributor = response['contributor']
  self.date_submitted = response['dateSubmitted']
  self.source = response['source']
  self.roots = response['roots']
end

Public Instance Methods

each() { |title| ... } click to toggle source
# File lib/eol/hierarchies.rb, line 27
def each
  yield @title
  yield @contributor
  yield @date_submitted
  yield @source
  yield @roots
end