Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lisa's FarMar #44

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open

Lisa's FarMar #44

wants to merge 51 commits into from

Conversation

Lisa-Sano
Copy link

Solo project by Lisa Rolczynski.

require 'csv' and require 'date'

I finished all that FarMar::Market optionals, the mixin optional, and a couple of the FarMar::Vendor optionals.

…e_all method that can create instances from csv files. Added self.all method to Markets class which calls the self.make_all module mixin method. Added a test in market_spec to make sure the self.all method call returns an array.
self.find methods in classes now not needed explicitly, and make_all on the mixin can be called using self as the default for Class calling it
…t are associated with a particular market by market_id
…eader for :vendor_id on Product class. added specs.
…ific instance matching vendor_id or product_id. added specs to test
…. Returns collection of sales of either vendor or product types.
… of all instances between a given time range. added specs to test
…of products using product's vendor_id and vendor's market_id. Added specs to test it out.
…st of all markets whose name or associated vendor name contains the searched term. added specs to test in market_spec.rb.
…most items at a particular market. added specs.
…irb. it seems that the Time class doesn't always include the parse method, so requiring 'time' covers bases.
…ales for a particular market. added specs. updated specs to test #preferred_vendor method too.
…ional (default value nil). returns all revenue from a specific date
…hat sold something that day are represented in case those with 0 revenue simply weren't present at the market. added and updated specs to test out changes and date addition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant