Class: EVSSClaimDocumentUploader
- Inherits:
-
EVSSClaimDocumentUploaderBase
- Object
- CarrierWave::Uploader::Base
- EVSSClaimDocumentUploaderBase
- EVSSClaimDocumentUploader
- Defined in:
- app/uploaders/evss_claim_document_uploader.rb
Overview
Files that will be associated with a previously submitted claim, from the Claim Status tool
Instance Method Summary collapse
-
#initialize(user_uuid, ids) ⇒ EVSSClaimDocumentUploader
constructor
A new instance of EVSSClaimDocumentUploader.
- #move_to_cache ⇒ Object
- #store_dir ⇒ Object
Methods inherited from EVSSClaimDocumentUploaderBase
#extension_allowlist, #max_file_size_non_pdf, #size_range, #validate_file_size
Methods included from ConvertFileType
#converted_exists?, #final_filename, #read_for_upload
Methods included from ValidatePdf
Methods included from SetAWSConfig
Constructor Details
#initialize(user_uuid, ids) ⇒ EVSSClaimDocumentUploader
Returns a new instance of EVSSClaimDocumentUploader.
5 6 7 8 9 10 11 12 13 |
# File 'app/uploaders/evss_claim_document_uploader.rb', line 5 def initialize(user_uuid, ids) # carrierwave allows only 2 arguments, which they will pass onto # different versions by calling the initialize function again, # that's why i put all ids in the 2nd argument instead of adding a 3rd argument super @user_uuid = user_uuid @ids = ids end |
Instance Method Details
#move_to_cache ⇒ Object
23 24 25 |
# File 'app/uploaders/evss_claim_document_uploader.rb', line 23 def move_to_cache false end |
#store_dir ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/uploaders/evss_claim_document_uploader.rb', line 15 def store_dir store_dir = "evss_claim_documents/#{@user_uuid}" @ids.compact.each do |id| store_dir += "/#{id}" end store_dir end |