Class: StackOne::Models::Shared::HRISBankDetails
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::HRISBankDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/hrisbankdetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(account_name: nil, account_type: nil, bank_name: nil, clearing_codes: nil, country_code: nil, currency_code: nil, iban: nil, id: nil, is_primary: nil, local_account_number: nil, remote_id: nil, swift_bic: nil) ⇒ HRISBankDetails
constructor
A new instance of HRISBankDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(account_name: nil, account_type: nil, bank_name: nil, clearing_codes: nil, country_code: nil, currency_code: nil, iban: nil, id: nil, is_primary: nil, local_account_number: nil, remote_id: nil, swift_bic: nil) ⇒ HRISBankDetails
Returns a new instance of HRISBankDetails.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/stack_one/models/shared/hrisbankdetails.rb', line 41 def initialize(account_name: nil, account_type: nil, bank_name: nil, clearing_codes: nil, country_code: nil, currency_code: nil, iban: nil, id: nil, is_primary: nil, local_account_number: nil, remote_id: nil, swift_bic: nil) @account_name = account_name @account_type = account_type @bank_name = bank_name @clearing_codes = clearing_codes @country_code = country_code @currency_code = currency_code @iban = iban @id = id @is_primary = is_primary @local_account_number = local_account_number @remote_id = remote_id @swift_bic = swift_bic end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/stack_one/models/shared/hrisbankdetails.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @account_name == other.account_name return false unless @account_type == other.account_type return false unless @bank_name == other.bank_name return false unless @clearing_codes == other.clearing_codes return false unless @country_code == other.country_code return false unless @currency_code == other.currency_code return false unless @iban == other.iban return false unless @id == other.id return false unless @is_primary == other.is_primary return false unless @local_account_number == other.local_account_number return false unless @remote_id == other.remote_id return false unless @swift_bic == other.swift_bic true end |