Skip to content

wbzyl/covid19-data-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cov19Data-Ruby

A Ruby wrapper for the Coronavirus Tracker API, which takes data directly from the Coronavirus (nCoV) Data Repository, provided by Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).

Installation

Add this line to your application's Gemfile:

gem 'cov19_data_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cov19_data_ruby

Usage

Get the latest amount of total confirmed cases, deaths, and recoveries globally:

Covid19Data.get_latest

Get case data for all locations with reported cases:

Covid19Data.get_all_locations

Find case data by country code with an optional argument to include timelines:

Covid19Data.find_by_country_code('US', true)

Find case data by location:

Covid19Data.find_by_location(id)

License

The gem is available as open source under the terms of the MIT License.

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%