Class: EVSS::VSOSearch::Service

Inherits:
Service show all
Defined in:
lib/evss/vso_search/service.rb

Overview

Proxy Service for VSO search

Examples:

Create a service and fetching current info for a user

vso_search_response = VSOSearch::Service.new.get_current_info

Constant Summary

Constants inherited from Service

Service::STATSD_KEY_PREFIX

Instance Attribute Summary

Attributes inherited from Service

#transaction_id

Instance Method Summary collapse

Methods inherited from Service

#headers, #initialize, #perform, service_is_up?

Methods included from Common::Client::Concerns::Monitoring

#with_monitoring

Methods inherited from Common::Client::Base

configuration, #raise_backend_exception

Methods included from SentryLogging

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

Constructor Details

This class inherits a constructor from EVSS::Service

Instance Method Details

#get_current_info(additional_headers = {}) ⇒ Faraday::Response

Returns current info for a user by their SSN

Parameters:

  • additional_headers (Hash) (defaults to: {})

    Any additional HTTP headers you want to include in the request.

Returns:

  • (Faraday::Response)

    Faraday response instance



23
24
25
26
27
# File 'lib/evss/vso_search/service.rb', line 23

def get_current_info(additional_headers = {})
  with_monitoring_and_error_handling do
    perform(:post, 'getCurrentInfo', '', request_headers(additional_headers)).body
  end
end