Giter Site home page Giter Site logo

plants's Introduction

Plants

Gem to interact with the trefle API.

Install

spec.add_dependency 'plants', '~> 0'

Usage

You need an authorization token, see this.

Plants.token = 'your token here'
Plants.list_plants # ... 

If you wish to override the log:

Plants::Log.instance = logger # Your logger here

Endpoints

All methods return an instance of HTTP::Response

The HTTP timeout is by default 10 seconds, you can override this by:

Plants.timeout = 5 # new value here

Corrections

# List
Plants.list_corrections

# Find 
Plants.find_correction('correction')

Distributions

# List
Plants.list_distributions

# Find 
Plants.find_distribution('correction')

Division Classes

# List
Plants.list_division_classes

# Find 
Plants.find_division_class('class')

Division Orders

# List
Plants.list_division_orders

# Find 
Plants.find_division_order('order')

Divisions

# List
Plants.list_divisions

# Find 
Plants.find_division('division')

Families

# List
Plants.list_families

# Find 
Plants.find_family('family')

Genus

# List
Plants.list_genera

# Find 
Plants.find_genus('genus')

Kingdoms

# List
Plants.list_kingdoms

# Find 
Plants.find_kingdom('kingodm')

Plants

# List
Plants.list_plants

# Find 
Plants.find_plant('plant')

# Search
Plants.search_for_plant('plant')

# List for Genus
Plants.list_plants_for_genus('genus')

# List for Distribution Zone
Plants.list_plants_for_distribution_zone('zone')

Species

# List
Plants.list_species

# Find 
Plants.find_species('species')

# Search
Plants.search_for_species('species')

Subkingdoms

# List
Plants.list_subkingdoms

# Find 
Plants.find_subkingdom('subkingdom')

plants's People

Contributors

one-m1nd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.