The below Class Diagrams describes all the implemented classes and their relationships.
There are 2 ways to try out the code sample with Docker or without Docker.
Note: This code was tested with Ruby 2.4.5 and 2.6.5
Install Docker if you don't have it yet.
git clone git://github.com/developertogo/yacs-checkout.git
cd yacs-checkout
docker build -t developertogo/yacs-checkout .
docker run -it --rm developertogo/yacs-checkout
Install Ruby, and bundler
if you don't have it already, as follows: gem install bundle
.
git clone git://github.com/developertogo/yacs-checkout.git
cd yacs-checkout
bundle install
ruby yacs_register.rb
Simply run:
$ rspec