Skip to content

Commit

Permalink
Switch account to be instance var, that way its not added to the user…
Browse files Browse the repository at this point in the history
… by mistake, and makes it into the array of accounts each time
  • Loading branch information
Justin Crites committed Apr 6, 2015
1 parent 344bcb9 commit 39aec90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Ruby bindings for the Plaid API

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.

Latest stable version: **1.4.2**
Latest stable version: **1.4.3**

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

Expand Down
12 changes: 6 additions & 6 deletions lib/plaid/user/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ def build_user(res,api_level=nil)
end

# Instantiate and build a new account object, return this to the accounts array
def new_account(account)
@account = Account.new
@account.new(account)
def new_account(res)
account = Account.new
account.new(res)
end

# Instantiate and build a new account object, return this to the accounts array
def new_transaction(transaction)
@transaction = Transaction.new
@transaction.new(transaction)
def new_transaction(res)
transaction = Transaction.new
transaction.new(res)
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/plaid/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Plaid
VERSION = '1.4.2'
VERSION = '1.4.3'
end

0 comments on commit 39aec90

Please sign in to comment.