Sha256: 78b9deccd6a84b18fe60d68c875b4952d21a03a41a283f7fbbde9cfc5c7ebd38
Contents?: true
Size: 417 Bytes
Versions: 5
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true require 'credit_gateway/base_model' require 'credit_gateway/bank_data' module CreditGateway class BankDataRequest < BaseModel attributes :banks_account_data def self.build(json:) super.tap do |record| record.banks_account_data = (record.banks_account_data || []).compact.map do |bad| BankData.build(json: bad) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems