This solution was developed using Ruby version 3.2.2, but any Ruby version greater than 2.7 should work.
To clone and run this application, you'll need Git installed on your computer.
From your command line:
# Clone this repository
$ git clone
# Update the dependencies
$ bundle install
# Run the script using a fixed city list
$ ruby ranker.rb
There are a couple of unit tests for the classes created in this project. In order to run them all just use:
$ rspec