Class: CreditGateway::BankAccount
- Defined in:
- lib/credit_gateway/bank_account.rb
Class Method Summary collapse
Methods inherited from BaseModel
#as_json, attribute_aliases, attributes, #initialize, key_transformer
Constructor Details
This class inherits a constructor from CreditGateway::BaseModel
Class Method Details
.build(json:) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/credit_gateway/bank_account.rb', line 11 def self.build(json:) super.tap do |record| record.account = (record.account || []).compact.map do |bad| BankAccountScheme.build(json: bad) end end end |