Sha256: 215cd9548ad68c4f30cd2e9b2e6a96fd1ea27175a42b24354e42ee4bf9f7b48b

Contents?: true

Size: 1.28 KB

Versions: 5

Compression:

Stored size: 1.28 KB

Contents

# frozen_string_literal: true

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

module Kovid
  require 'kovid/helpers'

  class Error < StandardError; end

  module_function

  def eu_aggregate
    Kovid::Request.eu_aggregate
  end

  def europe_aggregate
    Kovid::Request.europe_aggregate
  end

  def africa_aggregate
    Kovid::Request.africa_aggregate
  end

  def south_america_aggregate
    Kovid::Request.south_america_aggregate
  end

  def asia_aggregate
    Kovid::Request.asia_aggregate
  end

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

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

  def province(name)
    Kovid::Request.province(name)
  end

  def provinces(names)
    Kovid::Request.provinces(names)
  end

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

  def states(states)
    Kovid::Request.states(states)
  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, last)
    Kovid::Request.history(country, last)
  end

  def histogram(country, date)
    Kovid::Request.histogram(country, date)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kovid-0.6.0 lib/kovid.rb
kovid-0.5.8 lib/kovid.rb
kovid-0.5.7 lib/kovid.rb
kovid-0.5.6 lib/kovid.rb
kovid-0.5.5 lib/kovid.rb