Sha256: 46573ab5630910bf67562a81e801b6e3cadb2c8c24eae42244e96001271dfb11

Contents?: true

Size: 304 Bytes

Versions: 8

Compression:

Stored size: 304 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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aleph_analytics-0.1.0 lib/csv_service.rb
aleph_analytics-0.0.6 lib/csv_service.rb
aleph_analytics-0.0.5 lib/csv_service.rb
aleph_analytics-0.0.4 lib/csv_service.rb
aleph_analytics-0.0.3 lib/csv_service.rb
aleph_analytics-0.0.2 lib/csv_service.rb
aleph_analytics-0.0.1.alpha lib/csv_service.rb
aleph_analytics-0.0.0.alpha lib/csv_service.rb