Class: Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountNumberObject

Returns the value of attribute accountNumber.



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

def accountNumber
  @accountNumber
end

#holdingsObject

Returns the value of attribute holdings.



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

def holdings
  @holdings
end

#routingNumberObject

Returns the value of attribute routingNumber.



6
7
8
# File 'lib/Account.rb', line 6

def routingNumber
  @routingNumber
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end