class OFX::Parser
Attributes
body[R]
output[RW]
Public Class Methods
new(body)
click to toggle source
# File lib/ofx/parser.rb, line 7 def initialize(body) @body = body @output = {} dump end
Public Instance Methods
balance()
click to toggle source
# File lib/ofx/parser.rb, line 21 def balance @output[:balance].round(2) end
ofx_version()
click to toggle source
# File lib/ofx/parser.rb, line 13 def ofx_version @body[/VERSION:([0-9]{3})/, 1].to_i end
pending()
click to toggle source
# File lib/ofx/parser.rb, line 25 def pending @output[:pending].round(2) end
transactions()
click to toggle source
# File lib/ofx/parser.rb, line 17 def transactions @output[:transactions] end
Protected Instance Methods
dump()
click to toggle source
# File lib/ofx/parser.rb, line 31 def dump @dump ||= Ox.sax_parse(Handler.new(self), @body) end