Class: EVSS::DocumentUpload
- Inherits:
-
Object
- Object
- EVSS::DocumentUpload
- Extended by:
- Logging::ThirdPartyTransaction::MethodWrapper
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/evss/document_upload.rb
Instance Attribute Summary collapse
-
#auth_headers ⇒ Object
Returns the value of attribute auth_headers.
-
#document_hash ⇒ Object
Returns the value of attribute document_hash.
-
#user_uuid ⇒ Object
Returns the value of attribute user_uuid.
Instance Method Summary collapse
Methods included from Logging::ThirdPartyTransaction::MethodWrapper
Instance Attribute Details
#auth_headers ⇒ Object
Returns the value of attribute auth_headers.
11 12 13 |
# File 'app/sidekiq/evss/document_upload.rb', line 11 def auth_headers @auth_headers end |
#document_hash ⇒ Object
Returns the value of attribute document_hash.
11 12 13 |
# File 'app/sidekiq/evss/document_upload.rb', line 11 def document_hash @document_hash end |
#user_uuid ⇒ Object
Returns the value of attribute user_uuid.
11 12 13 |
# File 'app/sidekiq/evss/document_upload.rb', line 11 def user_uuid @user_uuid end |
Instance Method Details
#perform(auth_headers, user_uuid, document_hash) ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'app/sidekiq/evss/document_upload.rb', line 32 def perform(auth_headers, user_uuid, document_hash) @auth_headers = auth_headers @user_uuid = user_uuid @document_hash = document_hash validate_document! pull_file_from_cloud! perform_document_upload_to_evss clean_up! end |