/City-rank

A simple ruby script to sort a array of objects containing city data

Primary LanguageRuby

README

City Rank Script

Description

This solution was developed using Ruby version 3.2.2, but any Ruby version greater than 2.7 should work.

How To Use

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

Testing

There are a couple of unit tests for the classes created in this project. In order to run them all just use:

$ rspec