Class: EVSS::DocumentUpload

Inherits:
Object
  • Object
show all
Extended by:
Logging::ThirdPartyTransaction::MethodWrapper
Includes:
Sidekiq::Job
Defined in:
app/sidekiq/evss/document_upload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging::ThirdPartyTransaction::MethodWrapper

wrap_with_logging

Instance Attribute Details

#auth_headersObject

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_hashObject

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_uuidObject

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