Class: SaltParser::Ofx::Transaction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SaltParser::Base

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def 
  @account_id
end

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def amount
  @amount
end

#amount_in_penniesObject

Returns the value of attribute amount_in_pennies.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def amount_in_pennies
  @amount_in_pennies
end

#check_numberObject

Returns the value of attribute check_number.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def check_number
  @check_number
end

#fit_idObject

Returns the value of attribute fit_id.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def fit_id
  @fit_id
end

#memoObject

Returns the value of attribute memo.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def memo
  @memo
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def name
  @name
end

#payeeObject

Returns the value of attribute payee.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def payee
  @payee
end

#posted_atObject

Returns the value of attribute posted_at.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def posted_at
  @posted_at
end

#ref_numberObject

Returns the value of attribute ref_number.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def ref_number
  @ref_number
end

#sicObject

Returns the value of attribute sic.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def sic
  @sic
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def type
  @type
end

#unit_priceObject

Returns the value of attribute unit_price.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def unit_price
  @unit_price
end

#unitsObject

Returns the value of attribute units.



4
5
6
# File 'lib/ofx/transaction.rb', line 4

def units
  @units
end

Instance Method Details

#to_hashObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/ofx/transaction.rb', line 8

def to_hash
  {
    :amount             => amount,
    :amount_in_pennies  => amount_in_pennies,
    :check_number       => check_number,
    :fit_id             => fit_id,
    :memo               => memo,
    :name               => name,
    :payee              => payee,
    :posted_at          => posted_at,
    :ref_number         => ref_number,
    :type               => type,
    :sic                => sic,
    :units              => units,
    :unit_price         => unit_price,
    :account_id         => 
  }
end