Sha256: 09c52d192ebc77a834afec0c570cbbd9a638dc2a8272042c608f111557f6fada
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require 'credit_gateway/base_model' require 'credit_gateway/bank_account_scheme' module CreditGateway class BankAccount < BaseModel attributes :account_id, :account_type, :account_sub_type, :currency, :nickname, :account def self.build(json:) super.tap do |record| record.account = (record.account || []).compact.map do |bad| BankAccountScheme.build(json: bad) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems