Class: Covid19

Inherits:
Object
  • Object
show all
Defined in:
lib/covid19.rb,
lib/covid19/version.rb

Overview

To Follow

Constant Summary collapse

API_URL =
'https://corona-api.com/countries?include=timeline'.freeze
VERSION =
'1.0.1'.freeze

Class Method Summary collapse

Class Method Details

.latest_stats_allObject



14
15
16
# File 'lib/covid19.rb', line 14

def latest_stats_all
    return create_live_data_set
end

.latest_stats_globalObject



18
19
20
# File 'lib/covid19.rb', line 18

def latest_stats_global
    return create_live_data_set['Global']
end

.latest_stats_split_by_countryObject



22
23
24
# File 'lib/covid19.rb', line 22

def latest_stats_split_by_country
    return create_live_data_set['Countries']
end