The boilerplate Ruby project files were forked from: https://github.com/cnak/ruby_boilerplate

VENDING MACHINE

Design a vending machine using ruby. The vending machine should perform as the points below

  • Once an item is selected and the appropriate amount of money is inserted, the vending machine should return the correct product
  • It should also return change if too much money is provided, or ask for more money if insufficient funds have been inserted
  • The machine should take an initial load of products and change. The change will be of denominations 1p, 2p, 5p, 10p, 20p, 50p, £1, £2
  • There should be a way of reloading either products or change at a later point
  • The machine should keep track of the products and change that it contains

Classes

Vending Machine

Product

Coins

Command Line Interface

How To Run The App

  • Clone the repo
  • bundle install
  • In terminal type ruby bin/run.rb

How To Run The Tests

  • rspec spec OR
  • guard