Sha256: cf22e3634bb43ae1d1dd43445728c0b467cc6b4267c80eef71ccb1205ba49e2b
Contents?: true
Size: 782 Bytes
Versions: 7
Compression:
Stored size: 782 Bytes
Contents
module Plaid 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'] @type = hash['type'] @meta = hash['meta'] @institution_type = hash['institution_type'] if hash['balance'] @available_balance = hash['balance']['available'] @current_balance = 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 end end
Version data entries
7 entries across 7 versions & 1 rubygems