- Install ruby 1.9+
- Unpack the project zip
- Install bundler if not present by running
gem install bundler
- Run
bundle install
- Run
ruby src/card_system.rb
- Run
bundle exec rspec
user.enter_station(boarding_station)
user.enter_station(deboarding_station)
- Add
Station.new("Liverpool Square", TUBE, [ONE, TWO])
where TUBE is the StationType (TUBE / BUS)
and [ONE, TWO] are the zones for the station, since it is an array it can be any combination of ONE/TWO/THREE.