Sha256: 76e920e663ac9d9076b38b0824d7a376b46bdbd6ebd4431f01385a6b2472e0ff

Contents?: true

Size: 822 Bytes

Versions: 4

Compression:

Stored size: 822 Bytes

Contents

# frozen_string_literal: true

require 'kovid/version'
require 'kovid/request'

module Kovid
  class Error < StandardError; end

  module_function

  def whatis
    'Coronavirus disease 2019 (COVID-19) is an infectious disease caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2).'
  end

  def country(name)
    Kovid::Request.by_country(name)
  end

  def country_full(name)
    Kovid::Request.by_country_full(name)
  end

  def state(state)
    Kovid::Request.state(state)
  end

  def country_comparison(names_array)
    Kovid::Request.by_country_comparison(names_array)
  end

  def country_comparison_full(names_array)
    Kovid::Request.by_country_comparison_full(names_array)
  end

  def cases
    Kovid::Request.cases
  end

  def history(country)
    Kovid::Request.history(country)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kovid-0.2.4 lib/kovid.rb
kovid-0.2.3 lib/kovid.rb
kovid-0.2.2 lib/kovid.rb
kovid-0.2.1 lib/kovid.rb