Class: MangoModel::CaBankAccount
- Inherits:
-
BankAccount
- Object
- EntityBase
- BankAccount
- MangoModel::CaBankAccount
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/entity/account/ca_bank_account.rb
Overview
Bank account of AccountType::CA
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#account_number ⇒ Object
- String
-
Its account number (max 20 digits).
-
#bank_name ⇒ Object
- String
-
Its bank’s name (max 50 letters/digits).
-
#branch_code ⇒ Object
- String
-
Its bank’s branch code (5 digits).
-
#institution_number ⇒ Object
- String
-
Its institution number (3-4 digits).
Attributes inherited from BankAccount
#active, #owner_address, #owner_name, #type, #user_id
Attributes inherited from EntityBase
Instance Method Summary collapse
-
#initialize ⇒ CaBankAccount
constructor
A new instance of CaBankAccount.
Methods included from MangoPay::Jsonifier
Constructor Details
#initialize ⇒ CaBankAccount
Returns a new instance of CaBankAccount.
23 24 25 |
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 23 def initialize self.type = AccountType::CA end |
Instance Attribute Details
#account_number ⇒ Object
- String
-
Its account number (max 20 digits)
15 16 17 |
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 15 def account_number @account_number end |
#bank_name ⇒ Object
- String
-
Its bank’s name (max 50 letters/digits)
21 22 23 |
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 21 def bank_name @bank_name end |
#branch_code ⇒ Object
- String
-
Its bank’s branch code (5 digits)
18 19 20 |
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 18 def branch_code @branch_code end |
#institution_number ⇒ Object
- String
-
Its institution number (3-4 digits)
12 13 14 |
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 12 def institution_number @institution_number end |