https://github.com/fidme/jobs
Just a small challenge for our recruitment process
https://github.com/fidme/jobs
Last synced: 9 months ago
JSON representation
Just a small challenge for our recruitment process
- Host: GitHub
- URL: https://github.com/fidme/jobs
- Owner: FidMe
- Created: 2018-06-08T15:26:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-11T11:32:56.000Z (about 8 years ago)
- Last Synced: 2025-05-30T02:32:03.503Z (about 1 year ago)
- Language: Ruby
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FidMe Ruby challenge
This small exercice is just meant to challenge new FidMe appliants.
### Get started !
- Clone this repo (do **not** fork it)
- Install ruby if you haven't (any version will do fine)
- Run `ruby main.rb --loyalty_card_id=1 --user_id=5`
### The challenge
We are building a **wallet app**. Let's call it FidMe !
Our wallet app is made of a few identities:
For now we have users and loyalty cards.
Users can own loyalty cards.
Users can gain rewards (points) for a given card.
We already have a few data at our diposal (see `input.json`) and a main program (see `main.rb`)
The problem is... the command `ruby main.rb --loyalty_card_id=1 --user_id=5` always returns the same value !!
Write code that reproduces the output of the command, but is actually working with `input.json` data.
### What we expect from you
- Take your time :)
- Produce what your consider to be clean code.
- Use object oriented programming
- Do not try to overthink it
- Use any library or tool that you want (except Rails ;) ).
- You can create files and folders if you want
- You can (and we would love if you do) write test (but it is ok if you are not confident with it).