Class: Account
- Inherits:
-
Object
- Object
- Account
- Defined in:
- lib/Account.rb
Instance Attribute Summary collapse
-
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
-
#holdings ⇒ Object
Returns the value of attribute holdings.
-
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(accountNumber, type) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(accountNumber, type) ⇒ Account
Returns a new instance of Account.
8 9 10 11 12 13 |
# File 'lib/Account.rb', line 8 def initialize(accountNumber, type) @accountNumber = accountNumber @type = type @holdings = Array.new @routing = -1 end |
Instance Attribute Details
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
4 5 6 |
# File 'lib/Account.rb', line 4 def accountNumber @accountNumber end |
#holdings ⇒ Object
Returns the value of attribute holdings.
3 4 5 |
# File 'lib/Account.rb', line 3 def holdings @holdings end |
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
6 7 8 |
# File 'lib/Account.rb', line 6 def routingNumber @routingNumber end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/Account.rb', line 5 def type @type end |