Module: SupplementalDocumentUploadProvider
- 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
- .generate_upload_document(_file_name, _document_type) ⇒ Object
- .log_upload_failure(_uploading_class_prefix, _error_class, _error_message) ⇒ Object
- .log_upload_success(_uploading_class_prefix) ⇒ Object
- .raise_not_implemented_error ⇒ Object
- .submit_upload_document(_document, _file_body) ⇒ Object
- .validate_upload_document(_document) ⇒ Object
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, ) 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_error ⇒ Object
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 |