Skip to content

Commit 39aec90

Browse files
author
Justin Crites
committed
Switch account to be instance var, that way its not added to the user by mistake, and makes it into the array of accounts each time
1 parent 344bcb9 commit 39aec90

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Ruby bindings for the Plaid API
66

77
This version is a beta version that contains failing tests for the new 'info' endpoint. While these have been tested individually on real accounts the tests here will fail with the test accounts supplied. These will be updated soon with test credentials.
88

9-
Latest stable version: **1.4.2**
9+
Latest stable version: **1.4.3**
1010

1111
This version removes the need to use 'type' in each additional call.
1212

lib/plaid/user/user.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ def build_user(res,api_level=nil)
113113
end
114114

115115
# Instantiate and build a new account object, return this to the accounts array
116-
def new_account(account)
117-
@account = Account.new
118-
@account.new(account)
116+
def new_account(res)
117+
account = Account.new
118+
account.new(res)
119119
end
120120

121121
# Instantiate and build a new account object, return this to the accounts array
122-
def new_transaction(transaction)
123-
@transaction = Transaction.new
124-
@transaction.new(transaction)
122+
def new_transaction(res)
123+
transaction = Transaction.new
124+
transaction.new(res)
125125
end
126126

127127
private

lib/plaid/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Plaid
2-
VERSION = '1.4.2'
2+
VERSION = '1.4.3'
33
end

0 commit comments

Comments
 (0)