Class: AccountType1
- Inherits:
-
Object
- Object
- AccountType1
- Defined in:
- lib/model/AccountType1.rb
Instance Attribute Summary (collapse)
-
- (Object) ach
Returns the value of attribute ach.
Instance Method Summary (collapse)
-
- (AccountType1) initialize(hash)
constructor
A new instance of AccountType1.
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 |