Class: Aranha::Parsers::Ofx::Data::Transaction

Inherits:
Object
  • Object
show all
Extended by:
MonetaryClassSupport
Includes:
MonetarySupport
Defined in:
lib/aranha/parsers/ofx/data/transaction.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'
}.freeze

Instance Attribute Summary collapse

Attributes included from MonetaryClassSupport

#monies

Instance Method Summary collapse

Methods included from MonetaryClassSupport

monetary_vars

Methods included from MonetarySupport

#method_missing, #monetary_method_call?, #original_method, #pennies_for, #respond_to?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Aranha::Parsers::Ofx::Data::MonetarySupport

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def amount
  @amount
end

#check_numberObject

Returns the value of attribute check_number.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def check_number
  @check_number
end

#currateObject

Returns the value of attribute currate.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def currate
  @currate
end

#cursymObject

Returns the value of attribute cursym.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def cursym
  @cursym
end

#dateObject

Returns the value of attribute date.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def date
  @date
end

#fit_idObject

Returns the value of attribute fit_id.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def fit_id
  @fit_id
end

#memoObject

Returns the value of attribute memo.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def memo
  @memo
end

#payeeObject

Returns the value of attribute payee.



8
9
10
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 8

def payee
  @payee
end

#sicObject

rubocop:disable Lint/DuplicateMethods



46
47
48
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 46

def sic
  @sic
end

#typeObject

rubocop:disable Lint/DuplicateMethods



41
42
43
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 41

def type
  @type
end

Instance Method Details

#sic_descObject



50
51
52
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 50

def sic_desc
  ::Aranha::Parsers::Ofx::Mcc::CODES[sic]
end

#type_descObject



36
37
38
# File 'lib/aranha/parsers/ofx/data/transaction.rb', line 36

def type_desc
  TYPE[type]
end