By Sara Lundqvist & Sebastian Niewiadomski
We first created a own repository that we forked and pushed up everyting to by merging. Then we realized that we should have forked the repo from CraftAcademy, which we did and then continued working with the project. To see old commits please visit https://github.com/Saralundkvist86/atm
Atm_challenge_2020 application can create an Atm, a Person that has an Account. The Person can have cash in the pocket, or hold his money in his Account.
This is all possible by the 3 Ruby Classes, Atm, Person and Account which seperately holds methods for withdrawal, depostis and further
source 'https://rubygems.org'
-gem 'rspec'
-gem 'pry'
run irb/pry
require './lib/account.rb' require './lib/atm.rb' require './lib/person.rb'
your_name.Person.new(name: 'your_name', pincode: 1234, account: :active)
Starting with 500$
your_name.create_account
atm = Atm.new
your_name.deposit()
your_name.withdraw()