Class: BenefitsDocuments::WorkerService

Inherits:
Common::Client::Base show all
Defined in:
lib/lighthouse/benefits_documents/worker_service.rb

Constant Summary collapse

STATSD_KEY_PREFIX =
'api.benefits_documents'
STATSD_UPLOAD_LATENCY =
'lighthouse.api.benefits.documents.latency'

Instance Method Summary collapse

Methods inherited from Common::Client::Base

#config, configuration, #connection, #delete, #get, #perform, #post, #put, #raise_backend_exception, #raise_not_authenticated, #request, #sanitize_headers!, #service_name

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger, #set_sentry_metadata

Instance Method Details

#upload_document(file_body, lighthouse_document) ⇒ Object



13
14
15
# File 'lib/lighthouse/benefits_documents/worker_service.rb', line 13

def upload_document(file_body, lighthouse_document)
  config.post(file_body, lighthouse_document)
end