Class: HCA::EnrollmentEligibility::Configuration

Inherits:
Common::Client::Configuration::SOAP show all
Defined in:
lib/hca/enrollment_eligibility/configuration.rb

Instance Attribute Summary

Attributes inherited from Common::Client::Configuration::Base

#base_request_headers, #open_timeout, #read_timeout, #request_types, #user_agent

Instance Method Summary collapse

Methods inherited from Common::Client::Configuration::SOAP

#allow_missing_certs?, #ssl_cert, #ssl_key

Methods inherited from Common::Client::Configuration::Base

#breakers_error_threshold, #breakers_exception_handler, #breakers_matcher, #breakers_service, #create_new_breakers_service, #current_module, #request_options, #service_exception

Instance Method Details

#base_pathObject



6
7
8
# File 'lib/hca/enrollment_eligibility/configuration.rb', line 6

def base_path
  Settings.hca.ee.endpoint
end

#connectionObject



14
15
16
17
18
19
20
21
# File 'lib/hca/enrollment_eligibility/configuration.rb', line 14

def connection
  Faraday.new(base_path, headers: base_request_headers, request: request_options) do |conn|
    conn.use :breakers
    conn.request :soap_headers
    conn.response :soap_parser
    conn.adapter Faraday.default_adapter
  end
end

#service_nameObject



10
11
12
# File 'lib/hca/enrollment_eligibility/configuration.rb', line 10

def service_name
  'HCA_EE'
end