Class: MangoModel::GbBankAccount
- Inherits:
-
BankAccount
- Object
- EntityBase
- BankAccount
- MangoModel::GbBankAccount
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/entity/account/gb_bank_account.rb
Overview
Bank account of AccountType::GB
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#account_number ⇒ Object
- String
-
Its account number (8 digits).
-
#sort_code ⇒ Object
- String
-
Its sort code (6 digits).
Attributes inherited from BankAccount
#active, #owner_address, #owner_name, #type, #user_id
Attributes inherited from EntityBase
Instance Method Summary collapse
-
#initialize ⇒ GbBankAccount
constructor
A new instance of GbBankAccount.
Methods included from MangoPay::Jsonifier
Constructor Details
#initialize ⇒ GbBankAccount
Returns a new instance of GbBankAccount.
17 18 19 |
# File 'lib/mangopay/model/entity/account/gb_bank_account.rb', line 17 def initialize self.type = MangoModel::AccountType::GB end |
Instance Attribute Details
#account_number ⇒ Object
- String
-
Its account number (8 digits)
15 16 17 |
# File 'lib/mangopay/model/entity/account/gb_bank_account.rb', line 15 def account_number @account_number end |
#sort_code ⇒ Object
- String
-
Its sort code (6 digits)
12 13 14 |
# File 'lib/mangopay/model/entity/account/gb_bank_account.rb', line 12 def sort_code @sort_code end |