Class: LighthouseDocumentUploader
- Inherits:
-
LighthouseDocumentUploaderBase
- Object
- CarrierWave::Uploader::Base
- LighthouseDocumentUploaderBase
- LighthouseDocumentUploader
- Defined in:
- app/uploaders/lighthouse_document_uploader.rb
Overview
Files that will be associated with a previously submitted claim, from the Claim Status tool
Instance Method Summary collapse
-
#initialize(icn, ids) ⇒ LighthouseDocumentUploader
constructor
A new instance of LighthouseDocumentUploader.
- #move_to_cache ⇒ Object
- #store_dir ⇒ Object
Methods inherited from LighthouseDocumentUploaderBase
#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(icn, ids) ⇒ LighthouseDocumentUploader
Returns a new instance of LighthouseDocumentUploader.
5 6 7 8 9 10 11 12 13 |
# File 'app/uploaders/lighthouse_document_uploader.rb', line 5 def initialize(icn, 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 @icn = icn @ids = ids end |
Instance Method Details
#move_to_cache ⇒ Object
23 24 25 |
# File 'app/uploaders/lighthouse_document_uploader.rb', line 23 def move_to_cache false end |
#store_dir ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/uploaders/lighthouse_document_uploader.rb', line 15 def store_dir store_dir = "lighthouse_documents/#{@icn}" @ids.compact.each do |id| store_dir += "/#{id}" end store_dir end |