You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-2
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,15 @@ Create an `Account` class which should have the following functionality:
35
35
- Add an `owner` property to each Account to track information about who owns the account.
36
36
- The `Account` can be created with an `owner`, OR you can create a method that will add the `owner` after the `Account` has already been created.
37
37
38
-
<!--
38
+
39
39
## Wave 2
40
40
### CSV Files!
41
+
- Update the `Account` class to be able to handle all of these fields from the CSV file used as input.
42
+
- For example, manually choose the data from the first line of the CSV file and ensure you can create a new instance of your Account using that data
41
43
- Add the following **class** methods to your existing `Account` class
42
44
-`self.all` - returns a collection of `Account` instances, representing all of the Accounts described in the CSV. See below for the CSV file specifications
43
45
-`self.find(id)` - returns an instance of `Account` where the value of the id field in the CSV matches the passed parameter
44
-
- Update the `Account` class to be able to handle all of these fields from the CSV file used as input.
46
+
45
47
46
48
#### CSV Data File
47
49
Bank::Account
@@ -57,6 +59,21 @@ Create an `Account` class which should have the following functionality:
57
59
-`self.all` - returns a collection of `Owner` instances, representing all of the Owners described in the CSV. See below for the CSV file specifications
58
60
-`self.find(id)` - returns an instance of `Owner` where the value of the id field in the CSV matches the passed parameter
59
61
62
+
Bank::Owner
63
+
The data, in order in the CSV, consists of:
64
+
**ID** - (Fixnum) a unique identifier for that Owner
65
+
**Last Name** - (String) the owner's last name
66
+
**First Name** - (String) the owner's first name
67
+
**Street Addess** - (String) the owner's street address
68
+
**City** - (String) the owner's city
69
+
**State** - (String) the owner's state
70
+
71
+
To create the relationship between the accounts and the owners use the `account_owners` CSV file.
72
+
The data for this file, in order in the CSV, consists of:
73
+
**Account ID** - (Fixnum) a unique identifier corresponding to an account
74
+
**Owner ID** - (Fixnum) a unique identifier corresponding to an owner
75
+
76
+
<!--
60
77
## Wave 3
61
78
Create a `SavingsAccount` class which should inherit behavior from the `Account` class. It should include updated logic with the following functionality:
0 commit comments