class OldPlaid::Account
Attributes
account_id[RW]
available_balance[RW]
balances[RW]
current_balance[RW]
institution_type[RW]
mask[RW]
meta[RW]
name[RW]
numbers[RW]
subtype[RW]
transactions[RW]
type[RW]
Public Class Methods
new(hash)
click to toggle source
# File lib/old_plaid/models/account.rb, line 7 def initialize(hash) @account_id = hash['_id'] @name = hash['meta']['name'] if hash['meta'] @type = hash['type'] @meta = hash['meta'] @mask = hash['meta']['number'] if hash['meta'] @institution_type = hash['institution_type'] if hash['balance'] @balances = Balances.new( available: hash['balance']['available'], current: hash['balance']['current'] ) end # Depository account only, "checkings" or "savings" # Available on live data, but not on the test data @subtype = hash['subtype'] @numbers = hash['numbers'] ? hash['numbers'] : 'Upgrade user to access routing information for this account' end