Module: SupplementalDocumentUploadProvider

Included in:
EVSSSupplementalDocumentUploadProvider, LighthouseSupplementalDocumentUploadProvider
Defined in:
lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb

Constant Summary collapse

STATSD_ATTEMPT_METRIC =
'upload_attempt'
STATSD_SUCCESS_METRIC =
'upload_success'
STATSD_FAILED_METRIC =
'upload_failure'
STASTD_UPLOAD_JOB_FAILED_METRIC =
'upload_job_failed'

Class Method Summary collapse

Class Method Details

.generate_upload_document(_file_name, _document_type) ⇒ Object



13
14
15
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 13

def self.generate_upload_document(_file_name, _document_type)
  raise_not_implemented_error
end

.log_upload_failure(_uploading_class_prefix, _error_class, _error_message) ⇒ Object



29
30
31
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 29

def self.log_upload_failure(_uploading_class_prefix, _error_class, _error_message)
  raise_not_implemented_error
end

.log_upload_success(_uploading_class_prefix) ⇒ Object



25
26
27
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 25

def self.log_upload_success(_uploading_class_prefix)
  raise_not_implemented_error
end

.raise_not_implemented_errorObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 9

def self.raise_not_implemented_error
  raise NotImplementedError, 'Do not use base module methods. Override this method in implementation class.'
end

.submit_upload_document(_document, _file_body) ⇒ Object



21
22
23
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 21

def self.submit_upload_document(_document, _file_body)
  raise_not_implemented_error
end

.validate_upload_document(_document) ⇒ Object



17
18
19
# File 'lib/disability_compensation/providers/document_upload/supplemental_document_upload_provider.rb', line 17

def self.validate_upload_document(_document)
  raise_not_implemented_error
end