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