Module: Taxa::OpenTreeOfLife::Studies::Properties

Included in:
Taxa::OpenTreeOfLife::Studies
Defined in:
lib/taxa/open_tree_of_life/studies/properties.rb

Overview

wrapper around the node_info tree of life endpoint for Open Tree of Life

Instance Method Summary collapse

Instance Method Details

#propertiesObject



10
11
12
13
14
# File 'lib/taxa/open_tree_of_life/studies/properties.rb', line 10

def properties
  url = 'https://api.opentreeoflife.org/v3/studies/properties'
  response = @http_client.post(url, nil, 'Content-Type' => 'application/json')
  JSON.parse(response.body)
end