class PHLCovidTesting::CLI
Public Instance Methods
call()
click to toggle source
# File lib/phl_covid_testing/cli.rb, line 6 def call create_sites puts "\nWelcome to the Philadelphia COVID-19 Testing Finder! \nAll data provided by OpenDataPhilly at: https://www.opendataphilly.org/dataset/covid-19-test-sites".colorize(:yellow) get_input_main_options end
create_sites()
click to toggle source
# File lib/phl_covid_testing/cli.rb, line 14 def create_sites hash = PHLCovidTesting::API.get_data PHLCovidTesting::TestingLocation.create_from_collection(hash) end