Black Thursday is a system that is able to load, parse, search, and execute business intelligence queries against the data from a typical e-commerece business in Ruby.
0
stars
0
forks
source link
Business Intelligence - Find whcih items a given customer bought in given year #69
Find which items a given customer bought in given year (by the created_at on the related invoice):
sa = SalesAnalyst.new
sa.items_bought_in_year(customer_id, year) #=> [item]
https://github.com/turingschool/curriculum/blob/master/source/projects/black_thursday/iteration_5.markdown