Let's suppose we have a storefront. Included in this repo are files containing our transaction history for the last month (./data/transactions.json
) and our inventory and user lists (./data/data.json
). Our goal is to run some analytics on those.
- Write classes to get the included tests (
./tests.rb
) passing - Feel free to write more tests as you like to add more functionality to your classes
- Use those classes to answer the following questions (and update this README)
- The user that made the most orders was Miss Maxwell Gaylord
- We sold 31 Ergonomic Rubber Lamps
- We sold 198 items from the Tools category
- Our total revenue was $65696.65
- Harder: the highest grossing category was Books
If you're curious, you can see the script used to generate our dummy data in ./generators