Class: Eac::Parsers::Ofx

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

Instance Method Summary collapse

Methods inherited from Base

#content, #initialize, #url

Constructor Details

This class inherits a constructor from Eac::Parsers::Base

Instance Method Details

#assert_ofxObject



9
10
11
12
# File 'lib/eac/parsers/ofx.rb', line 9

def assert_ofx
  fail "Not a OFX: #{url}" unless ofx. || ofx.credit_card ||
    ofx.investment
end

#ofxObject



5
6
7
# File 'lib/eac/parsers/ofx.rb', line 5

def ofx
  @ofx ||= ofx_parse
end

#ofx?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/eac/parsers/ofx.rb', line 14

def ofx?
  ofx.present?
end