Class: InvestecOpenApi::Models::Account
- Defined in:
- lib/investec_open_api/models/account.rb
Class Method Summary collapse
Class Method Details
.from_api(params = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/investec_open_api/models/account.rb', line 9 def self.from_api(params = {}) if params['accountId'].present? params['id'] = params['accountId'] end if params['accountNumber'].present? params['number'] = params['accountNumber'] end if params['accountName'].present? params['name'] = params['accountName'] end super end |