Skip to content

Commit

Permalink
Add CSV files and CSV file structure info
Browse files Browse the repository at this point in the history
  • Loading branch information
kariabancroft committed Oct 6, 2015
1 parent 96d9038 commit d07969f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ Create an `Account` class which should have the following functionality:
- `self.all` - returns a collection of `Owner` instances, representing all of the Owners described in the CSV. See below for the CSV file specifications
- `self.find(id)` - returns an instance of `Owner` where the value of the id field in the CSV matches the passed parameter
Bank::Owner
The data, in order in the CSV, consists of:
**ID** - (Fixnum) a unique identifier for that Owner
**Last Name** - (String) the owner's last name
**First Name** - (String) the owner's first name
**Street Addess** - (String) the owner's street address
**City** - (String) the owner's city
**State** - (String) the owner's state
To create the relationship between the accounts and the owners use the `account_owners` CSV file.
The data for this file, in order in the CSV, consists of:
**Account ID** - (Fixnum) a unique identifier corresponding to an account
**Owner ID** - (Fixnum) a unique identifier corresponding to an owner
## Wave 3
Create a `SavingsAccount` class which should inherit behavior from the `Account` class. It should include updated logic with the following functionality:
- An updated `initialize` method:
Expand Down
12 changes: 12 additions & 0 deletions support/account_owners.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1212,25
1213,24
1214,19
1215,14
1216,18
1217,15
15151,17
15152,16
15153,21
15154,20
15155,22
15156,23
12 changes: 12 additions & 0 deletions support/accounts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1212,1235667,1999-03-27 11:30:09 -0800
1213,66367,2010-12-21 12:21:12 -0800
1214,9876890,2007-09-22 11:53:00 -0800
1215,919191,2011-10-31 13:55:55 -0800
1216,100022,2000-07-07 15:07:55 -0800
1217,12323,2003-11-07 11:34:56 -0800
15151,9844567,1993-01-17 13:30:56 -0800
15152,34343434343,1999-02-12 14:03:00 -0800
15153,2134,2013-11-07 09:04:56 -0800
15154,43567,1996-04-17 08:44:56 -0800
15155,999999,1990-06-10 13:13:13 -0800
15156,4356772,1994-11-17 14:04:56 -0800
12 changes: 12 additions & 0 deletions support/owners.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
14,Morales,Wanda,9003 Gerald Hill,Honolulu,Hawaii
15,Foster,Shirley,79734 Namekagon Court,Tampa,Florida
16,Taylor,James,9 Portage Court,Winston Salem,North Carolina
17,Ross,Marilyn,0 Delaware Circle,Seattle,Washington
18,Gonzalez,Laura,310 Hauk Street,Springfield,Illinois
19,Cooper,Ruby,99 American Road,Atlanta,Georgia
20,Knight,Helen,3373 American Point,Charlotte,North Carolina
21,Bell,Jessica,06 Kenwood Hill,Lansing,Michigan
22,Sanders,Annie,8113 Sutherland Center,Everett,Washington
23,Berry,Shirley,7 Kings Pass,Cleveland,Ohio
24,King,Kevin,3499 Judy Center,Santa Monica,California
25,Clark,Kathleen,72984 Chive Hill,New York City,New York

0 comments on commit d07969f

Please sign in to comment.