Class: Account

Inherits:
Object
  • Object
show all
Defined in:
lib/Account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#holdingsObject

Returns the value of attribute holdings.



3
4
5
# File 'lib/Account.rb', line 3

def holdings
  @holdings
end

#numberObject

Returns the value of attribute number.



4
5
6
# File 'lib/Account.rb', line 4

def number
  @number
end