Class: ServiceCheck

Inherits:
DataverseOperations show all
Defined in:
lib/dvla/dataverse/operations/service_check.rb

Instance Method Summary collapse

Methods inherited from DataverseOperations

#apply_filter, #http_request_artifacts, #initialize, #send_request, #setup_http_headers

Constructor Details

This class inherits a constructor from DataverseOperations

Instance Method Details

#get_url_from_config_fileObject



11
12
13
14
# File 'lib/dvla/dataverse/operations/service_check.rb', line 11

def get_url_from_config_file
  url = Settings&.dataverse&.operations&.service_check_url
  url.nil? ? raise('service_check url is missing from the configuration file') : url
end

#setup_artifactsObject



5
6
7
8
9
# File 'lib/dvla/dataverse/operations/service_check.rb', line 5

def setup_artifacts
  setup_http_headers
  http_request_artifacts.url = get_url_from_config_file
  http_request_artifacts.method = :get
end