Sha256: b47ddb970add801a58d2e833676c15fc4c3bd9bb3e5934e35ac290ee5ab8e864
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
require 'thor' require_relative 'services/covid19_data' module Covid19 class Client < Thor def self.exit_on_failure? true end desc 'all_continents', 'List all continents data' def all_continents puts Covid19::Services::Covid19Data.all_continents end desc 'all countries', 'List all countries data' def all_countries puts Covid19::Services::Covid19Data.all_countries end desc 'continent CONTINENT_NAME', 'List continent data' def continent(continent_name) puts Covid19::Services::Covid19Data.continent(continent_name) end desc 'country COUNTRY_NAME', 'List country data' def country(country_name) puts Covid19::Services::Covid19Data.country(country_name) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
covid19-cli-0.2.0 | lib/covid19/client.rb |