Class: MangoModel::GbBankAccount

Inherits:
BankAccount show all
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

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from BankAccount

#active, #owner_address, #owner_name, #type, #user_id

Attributes inherited from EntityBase

#creation_date, #id, #tag

Instance Method Summary collapse

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Constructor Details

#initializeGbBankAccount

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_numberObject

String

Its account number (8 digits)



15
16
17
# File 'lib/mangopay/model/entity/account/gb_bank_account.rb', line 15

def 
  @account_number
end

#sort_codeObject

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