Class: SaltParser::Ofx::Balance

Inherits:
Base
  • Object
show all
Defined in:
lib/ofx/balance.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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#amount_in_penniesObject

Returns the value of attribute amount_in_pennies.



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

def amount_in_pennies
  @amount_in_pennies
end

#posted_atObject

Returns the value of attribute posted_at.



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

def posted_at
  @posted_at
end

Instance Method Details

#to_hashObject



6
7
8
9
10
11
12
# File 'lib/ofx/balance.rb', line 6

def to_hash
  {
    :amount            => amount,
    :amount_in_pennies => amount_in_pennies,
    :posted_at         => posted_at
  }
end