Class: AccountType1

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (AccountType1) initialize(hash)

Returns a new instance of AccountType1



6
7
8
9
10
11
12
13
14
# File 'lib/model/AccountType1.rb', line 6

def initialize(hash)
	unless hash["ACH"].nil?
		@ach = Ach.new(hash["ACH"])	
	end
	
	unless hash["CC"].nil?
		@creditCard = CreditCard.new(hash["CC"])	
	end
end

Instance Attribute Details

- (Object) ach

Returns the value of attribute ach



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

def ach
  @ach
end