Class: Plaid::Models::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/ynap/extensions/plaid/models/transaction.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject

Includes a negative amount for easier comparison with YNAB transactions



5
6
7
# File 'lib/ynap/extensions/plaid/models/transaction.rb', line 5

def description
  [date, "#{(-amount).to_s.rjust(12)} #{iso_currency_code}", name].join(" - ")
end