lib/plaid.rb in plaid-1.5.3 vs lib/plaid.rb in plaid-1.6.0

- old
+ new

@@ -5,11 +5,10 @@ require 'plaid/models/user' require 'plaid/models/institution' require 'plaid/models/category' require 'plaid/models/exchange_token_response' - require 'json' module Plaid autoload :Connection, 'plaid/connection' @@ -49,11 +48,11 @@ def set_user(token, api_levels=[], institution_type=nil) _user = User.new _user.access_token = fully_qualified_token(token, institution_type) _user.permissions = api_levels api_levels.each { |l| _user.get(l) } - return _user + _user end # API: public # Given an access code and query options, use this to get a dataset of # transactions and accounts for # a given user. See /connect/get endpoint @@ -69,10 +68,10 @@ # TODO: For 2.0, submit all data as JSON options = JSON.generate(options) if options.kind_of?(Hash) _user.get_connect(options: options) - return _user + _user end # API: public # Returns the fully-qualified token based upon type # Note: Don't see this documented in the Plaid API docs, need to investigate this