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