Class: OFXReader::Parser::Base
- Inherits:
-
Object
- Object
- OFXReader::Parser::Base
- Defined in:
- lib/ofx_reader/parser/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(content) ⇒ Base
constructor
A new instance of Base.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/ofx_reader/parser/base.rb', line 7 def body @body end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/ofx_reader/parser/base.rb', line 7 def content @content end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
7 8 9 |
# File 'lib/ofx_reader/parser/base.rb', line 7 def headers @headers end |