lib/plaid/models/account.rb in plaid-1.6.2 vs lib/plaid/models/account.rb in plaid-1.7.0
- old
+ new
@@ -2,10 +2,10 @@
class Account
attr_accessor :available_balance, :current_balance, :institution_type, :meta, :transactions, :numbers, :name, :id, :type, :subtype
def initialize(hash)
@id = hash['_id']
- @name = hash['name']
+ @name = hash['meta']['name'] if hash['meta']
@type = hash['type']
@meta = hash['meta']
@institution_type = hash['institution_type']
if hash['balance']