A wrapper for the Encyclopedia of Life API. It provides simple methods to call all of the available EOL API endpoints.
Add this line to your application's Gemfile:
gem 'eol'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eol
# create a search
search = Eol.search("tolumnia")
# decide to modify the search
search = Eol.search("tolumnia", exact: true)
# print links to your results
search.each do |search|
puts search.link
end
# get collections
collections = Eol.collections("176")
# get sorted and cached collections
collections = Eol.collections('176', sort_by: 'oldest', cache_ttl: 30)
After checking out the repo, run bin/setup
to install dependencies. Then, run rake
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/itroman/eol. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.