Skip to content

Week 2: Learning how to build a system of an Oystercard throughout the week in pairs 🚉

Notifications You must be signed in to change notification settings

thatdania/oystercard-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oystercard challenge

oystercard Build Status Coverage Status

Approach

In my journey of creating an Oyster-card, I had first designed and created Domain Models to specify what is the focus of each function the oyster card has. Whilst pairing with three amazing coders, we have split the methods using the Single Responsibility Principle along with the classes (The Journey, The Oystercard, the Station and the Journey Log). Each methodshould have three lines of less as we used delegation, for a different function.

The code should be clean and easy to read although it's a lot to intake. Tribute to my great pair partners to help me finish my first challenge.

  • @Yolantele
  • @peterwdj
  • @cristhiandas

Although, we finished, I believe I would have to do this process multiple times for it to sink in.

Domain Models

Object Messages Tests
card want money balance is 0 by default
card add money
card max limit £ 90
fare dedcuted decducted from baalnce
entry station touch in log entry station
exit station touch out log exit station
journey amount has a minimum amount
journey pay when its complete
log travelled log of travel from
trips see log of previous trips
zone station see a zone for station
penalty charge deduct if fail to touch in/out
fare have the correct fare

Sample Issue Comments:

NameError : Uninitialized constant Oystercard File path: ./spec/oystercard_spec.rb Line number: 3

340bcf2f28cc9631bb32e24d265b4c780710e6a3

About

Week 2: Learning how to build a system of an Oystercard throughout the week in pairs 🚉

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages