Class: Lighthouse::DirectDeposit::PaymentAccount
- Inherits:
-
Object
- Object
- Lighthouse::DirectDeposit::PaymentAccount
- Includes:
- ActiveModel::Model
- Defined in:
- lib/lighthouse/direct_deposit/payment_account.rb
Constant Summary collapse
- ACCOUNT_NUM_REGEX =
/\A[a-zA-Z0-9]+\z/
- ROUTING_NUM_REGEX =
/\A\d{9}\z/
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
- #account_type ⇒ Object
-
#name ⇒ Object
Returns the value of attribute name.
-
#routing_number ⇒ Object
Returns the value of attribute routing_number.
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
8 9 10 |
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 8 def account_number @account_number end |
#account_type ⇒ Object
21 22 23 |
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 21 def account_type @account_type&.capitalize end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/lighthouse/direct_deposit/payment_account.rb', line 8 def name @name end |
#routing_number ⇒ Object
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 |