Class: OfxParser::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx_parser/ofx.rb

Constant Summary collapse

TYPE =
{
  :CREDIT      => "Generic credit",
  :DEBIT       => "Generic debit",
  :INT         => "Interest earned or paid ",
  :DIV         => "Dividend",
  :FEE         => "FI fee",
  :SRVCHG      => "Service charge",
  :DEP         => "Deposit",
  :ATM         => "ATM debit or credit",
  :POS         => "Point of sale debit or credit ",
  :XFER        => "Transfer",
  :CHECK       => "Check",
  :PAYMENT     => "Electronic payment",
  :CASH        => "Cash withdrawal",
  :DIRECTDEP   => "Direct deposit",
  :DIRECTDEBIT => "Merchant initiated debit",
  :REPEATPMT   => "Repeating payment/standing order",
  :OTHER       => "Other"
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def amount
  @amount
end

#check_numberObject

Returns the value of attribute check_number.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def check_number
  @check_number
end

#dateObject

Returns the value of attribute date.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def date
  @date
end

#fit_idObject

Returns the value of attribute fit_id.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def fit_id
  @fit_id
end

#memoObject

Returns the value of attribute memo.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def memo
  @memo
end

#payeeObject

Returns the value of attribute payee.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def payee
  @payee
end

#sicObject

Returns the value of attribute sic.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def sic
  @sic
end

#typeObject

Returns the value of attribute type.



56
57
58
# File 'lib/ofx_parser/ofx.rb', line 56

def type
  @type
end

Instance Method Details

#sic_descObject



92
93
94
# File 'lib/ofx_parser/ofx.rb', line 92

def sic_desc
  Mcc::CODES[sic]
end

#type_descObject



78
79
80
# File 'lib/ofx_parser/ofx.rb', line 78

def type_desc
  TYPE[type]
end