Sha256: dc7f38aac9edeb2d58a6e0ee7e50ccc2b9fe6748796d78ff391e3fa5e3fba2c2

Contents?: true

Size: 385 Bytes

Versions: 16

Compression:

Stored size: 385 Bytes

Contents

require 'fileutils'
module CsvHelper
  class Base
    CSV_RESULTS_DIR = '/tmp'

    def initialize(result_id)
      @result_id = result_id
      @tmp_results_dir = File.join(Rails.root, CSV_RESULTS_DIR)
      FileUtils.mkdir_p(@tmp_results_dir)
    end

    def filepath
      File.join(@tmp_results_dir, filename)
    end

    def filename
      "#{@result_id}.csv"
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev lib/csv_helper/base.rb
aleph_analytics-0.4.8 lib/csv_helper/base.rb
aleph_analytics-0.4.7 lib/csv_helper/base.rb
aleph_analytics-0.4.4 lib/csv_helper/base.rb
aleph_analytics-0.4.2 lib/csv_helper/base.rb
aleph_analytics-0.4.1 lib/csv_helper/base.rb
aleph_analytics-0.3.0 lib/csv_helper/base.rb
aleph_analytics-0.2.0 lib/csv_helper/base.rb
aleph_analytics-0.1.0 lib/csv_helper/base.rb
aleph_analytics-0.0.6 lib/csv_helper/base.rb
aleph_analytics-0.0.5 lib/csv_helper/base.rb
aleph_analytics-0.0.4 lib/csv_helper/base.rb
aleph_analytics-0.0.3 lib/csv_helper/base.rb
aleph_analytics-0.0.2 lib/csv_helper/base.rb
aleph_analytics-0.0.1.alpha lib/csv_helper/base.rb
aleph_analytics-0.0.0.alpha lib/csv_helper/base.rb