Class: OFXReader::Parser::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx_reader/parser/base.rb

Direct Known Subclasses

OFX102

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/ofx_reader/parser/base.rb', line 9

def initialize(content)
  @content = content.encode("UTF-8", "ISO-8859-1")
  @headers, @body = read(@content)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



7
8
9
# File 'lib/ofx_reader/parser/base.rb', line 7

def body
  @body
end

#contentObject (readonly)

Returns the value of attribute content.



7
8
9
# File 'lib/ofx_reader/parser/base.rb', line 7

def content
  @content
end

#headersObject (readonly)

Returns the value of attribute headers.



7
8
9
# File 'lib/ofx_reader/parser/base.rb', line 7

def headers
  @headers
end