Class: Taxa::OpenTreeOfLife::TreeOfLife

Inherits:
Object
  • Object
show all
Includes:
LabelFormatHelper, About, InducedSubtree, Mrca, NodeInfo, Subtree
Defined in:
lib/taxa/open_tree_of_life/tree_of_life/base.rb,
lib/taxa/open_tree_of_life/tree_of_life/mrca.rb,
lib/taxa/open_tree_of_life/tree_of_life/about.rb,
lib/taxa/open_tree_of_life/tree_of_life/subtree.rb,
lib/taxa/open_tree_of_life/tree_of_life/node_info.rb,
lib/taxa/open_tree_of_life/tree_of_life/induced_subtree.rb

Overview

wraps the tree of life API from Open Tree of Life

Defined Under Namespace

Modules: About, InducedSubtree, Mrca, NodeInfo, Subtree

Constant Summary collapse

SUBTREE_FORMATS =
%w[newick arguson].freeze

Constants included from LabelFormatHelper

LabelFormatHelper::SUBTREE_LABEL_FORMATS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LabelFormatHelper

#get_label_format

Methods included from InducedSubtree

#induced_subtree

Methods included from Subtree

#subtree

Methods included from Mrca

#mrca

Methods included from NodeInfo

#node_info

Methods included from About

#about

Constructor Details

#initialize(http_client) ⇒ TreeOfLife

Returns a new instance of TreeOfLife.



25
26
27
# File 'lib/taxa/open_tree_of_life/tree_of_life/base.rb', line 25

def initialize(http_client)
  @http_client = http_client
end

Instance Attribute Details

#http_clientObject (readonly)

Returns the value of attribute http_client.



23
24
25
# File 'lib/taxa/open_tree_of_life/tree_of_life/base.rb', line 23

def http_client
  @http_client
end