Class: OFX::Parser::OFX102

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/parser/ofx102.rb

Constant Summary collapse

VERSION =
"1.0.2"
ACCOUNT_TYPES =
{
  "CHECKING" => :checking
}
TRANSACTION_TYPES =
{
  "CREDIT" => :credit,
  "DEBIT" => :debit,
  "OTHER" => :other,
  "DEP" => :dep,
  "XFER" => :xfer,
  "CASH" => :cash
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ OFX102

Returns a new instance of OFX102.



25
26
27
28
29
# File 'lib/ofx/parser/ofx102.rb', line 25

def initialize(options = {})
  @headers = options[:headers]
  @body = options[:body]
  @html = Nokogiri::HTML.parse(body)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



22
23
24
# File 'lib/ofx/parser/ofx102.rb', line 22

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



21
22
23
# File 'lib/ofx/parser/ofx102.rb', line 21

def headers
  @headers
end

#htmlObject (readonly)

Returns the value of attribute html.



23
24
25
# File 'lib/ofx/parser/ofx102.rb', line 23

def html
  @html
end

Instance Method Details

#accountObject



31
32
33
# File 'lib/ofx/parser/ofx102.rb', line 31

def 
  @account ||= 
end