Module: Taxa::OpenTreeOfLife::Studies::Study
- Included in:
- Taxa::OpenTreeOfLife::Studies
- Defined in:
- lib/taxa/open_tree_of_life/studies/study.rb
Overview
wrapper around the node_info tree of life endpoint for Open Tree of Life
Instance Method Summary collapse
Instance Method Details
#study(id) ⇒ Object
10 11 12 13 14 |
# File 'lib/taxa/open_tree_of_life/studies/study.rb', line 10 def study(id) url = "https://api.opentreeoflife.org/v3/study/#{id}" response = @http_client.get(url, nil, 'Content-Type' => 'application/json') JSON.parse(response.body) end |