Class: SaltParser::Qif::Builder
Instance Attribute Summary
Attributes inherited from Builder
#body, #content, #headers, #parser
Instance Method Summary collapse
-
#initialize(resource, date_format = "%m/%d/%Y") ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(resource, date_format = "%m/%d/%Y") ⇒ Builder
Returns a new instance of Builder.
5 6 7 8 9 10 11 12 13 |
# File 'lib/qif/builder.rb', line 5 def initialize(resource, date_format="%m/%d/%Y") resource = open_resource(resource) resource.rewind @content = convert_to_utf8(resource.read) prepare(content) @parser = Parser.new(:headers => headers, :body => body, :date_format => date_format) end |