class LedgerTillerExport::Row
Public Class Methods
from_csv_row(row)
click to toggle source
# File lib/ledger_tiller_export.rb, line 23 def self.from_csv_row(row) new( txn_date: Date.strptime(T.must(row["Date"]), "%m/%d/%Y"), txn_id: T.must(row['Transaction ID']), account: T.must(row['Account']), amount: T.must(row["Amount"]).gsub('$', '').gsub(',', '').to_f, description: T.must(row['Description']).gsub(/\+? /, '').capitalize, ) end