Class: CsvHelper::Aws

Inherits:
Base
  • Object
show all
Defined in:
lib/csv_helper/aws.rb

Constant Summary

Constants inherited from Base

Base::CSV_RESULTS_DIR

Instance Method Summary collapse

Methods inherited from Base

#filename, #filepath, #initialize

Constructor Details

This class inherits a constructor from CsvHelper::Base

Instance Method Details

#keyObject



11
12
13
# File 'lib/csv_helper/aws.rb', line 11

def key
  AwsS3::S3_FOLDER ? "#{AwsS3::S3_FOLDER}/#{filename}" : filename
end

#store!Object



7
8
9
# File 'lib/csv_helper/aws.rb', line 7

def store!
  AwsS3.store(key, filepath)
end

#urlObject



3
4
5
# File 'lib/csv_helper/aws.rb', line 3

def url
  AwsS3.presigned_url(key, "result_#{@result_id}.csv", 3600)
end