Sha256: 3633cbbe865c6726a9f12fdd24f7ff2740755d8c932c283e0436bb31cac450e2

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

# frozen_string_literal: true

require_relative 'request'

module Kovid
  class Nineteen
    class << self
      def whatis
        puts 'Coronavirus disease (COVID-19) is an infectious disease caused by a new virus.'
      end

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

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

      def country_comparison(name)
        puts Kovid::Request.by_country_comparison(name)
      end

      def country_comparison_full(name)
        puts Kovid::Request.by_country_comparison_full(name)
      end

      def cases
        puts Kovid::Request.cases
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kovid-0.1.7 lib/kovid/nineteen.rb
kovid-0.1.6 lib/kovid/nineteen.rb
kovid-0.1.5 lib/kovid/nineteen.rb