Class: Lighthouse::DirectDeposit::PaymentAccount

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/lighthouse/direct_deposit/payment_account.rb

Constant Summary collapse

ACCOUNT_NUM_REGEX =
/\A\d*\z/
ROUTING_NUM_REGEX =
/\A\d{9}\z/

Instance Attribute Summary collapse

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



8
9
10
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 8

def 
  @account_number
end

#account_typeObject



21
22
23
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 21

def 
  @account_type&.capitalize
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 8

def name
  @name
end

#routing_numberObject

Returns the value of attribute routing_number.



8
9
10
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 8

def routing_number
  @routing_number
end