Method: Fech::Filing#initialize
- Defined in:
- lib/fech/filing.rb
#initialize(filing_id, opts = {}) ⇒ Filing
Create a new Filing object, assign the download directory to system’s temp folder by default.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/fech/filing.rb', line 23 def initialize(filing_id, opts={}) @filing_id = filing_id @download_dir = opts[:download_dir] || Dir.tmpdir @translator = opts[:translate] ? Fech::Translator.new(:include => opts[:translate]) : nil @quote_char = opts[:quote_char] || '"' @csv_parser = opts[:csv_parser] || Fech::Csv @resaved = false @customized = false @encoding = opts[:encoding] || 'iso-8859-1:utf-8' end |