Sha256: f6ef4148ad4106cea4f080cc2c2208236aa60d8085ddb08df197a9e7a20f949e

Contents?: true

Size: 383 Bytes

Versions: 8

Compression:

Stored size: 383 Bytes

Contents

class CsvService
  attr_reader :service_impl
  delegate :url, :store!, :filepath, :filename, to: :service_impl

  def initialize(result_id)
    if APP_CONFIG['s3_bucket']
      @service_impl = CsvHelper::Aws.new(result_id)
    else
      @service_impl = CsvHelper::Local.new(result_id)
    end
  end

  def clear_tmp_file
    File.delete(filepath) if File.exist?(filepath)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev lib/csv_service.rb
aleph_analytics-0.4.8 lib/csv_service.rb
aleph_analytics-0.4.7 lib/csv_service.rb
aleph_analytics-0.4.4 lib/csv_service.rb
aleph_analytics-0.4.2 lib/csv_service.rb
aleph_analytics-0.4.1 lib/csv_service.rb
aleph_analytics-0.3.0 lib/csv_service.rb
aleph_analytics-0.2.0 lib/csv_service.rb