From d07969f172a5f02557f8fbeaf28c39e071b6e04c Mon Sep 17 00:00:00 2001 From: Kari Bancroft Date: Tue, 6 Oct 2015 14:07:28 -0700 Subject: [PATCH] Add CSV files and CSV file structure info --- README.md | 15 +++++++++++++++ support/account_owners.csv | 12 ++++++++++++ support/accounts.csv | 12 ++++++++++++ support/owners.csv | 12 ++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 support/account_owners.csv create mode 100644 support/accounts.csv create mode 100644 support/owners.csv diff --git a/README.md b/README.md index 189d78f9..068380c3 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/support/account_owners.csv b/support/account_owners.csv new file mode 100644 index 00000000..4c86f097 --- /dev/null +++ b/support/account_owners.csv @@ -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 diff --git a/support/accounts.csv b/support/accounts.csv new file mode 100644 index 00000000..3417f2dc --- /dev/null +++ b/support/accounts.csv @@ -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 diff --git a/support/owners.csv b/support/owners.csv new file mode 100644 index 00000000..240a43de --- /dev/null +++ b/support/owners.csv @@ -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