Class: Covid19::Client
- Inherits:
-
Thor
- Object
- Thor
- Covid19::Client
- Defined in:
- lib/covid19/client.rb
Class Method Summary collapse
Instance Method Summary collapse
- #all_continents ⇒ Object
- #all_countries ⇒ Object
- #continent(continent_name) ⇒ Object
- #country(country_name) ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
6 7 8 |
# File 'lib/covid19/client.rb', line 6 def self.exit_on_failure? true end |
Instance Method Details
#all_continents ⇒ Object
11 12 13 |
# File 'lib/covid19/client.rb', line 11 def all_continents puts Covid19::Services::Covid19Data.all_continents end |
#all_countries ⇒ Object
16 17 18 |
# File 'lib/covid19/client.rb', line 16 def all_countries puts Covid19::Services::Covid19Data.all_countries end |
#continent(continent_name) ⇒ Object
21 22 23 |
# File 'lib/covid19/client.rb', line 21 def continent(continent_name) puts Covid19::Services::Covid19Data.continent(continent_name) end |
#country(country_name) ⇒ Object
26 27 28 |
# File 'lib/covid19/client.rb', line 26 def country(country_name) puts Covid19::Services::Covid19Data.country(country_name) end |