Class: HCA::Configuration
- Inherits:
-
Common::Client::Configuration::SOAP
- Object
- Common::Client::Configuration::Base
- Common::Client::Configuration::SOAP
- HCA::Configuration
- Defined in:
- lib/hca/configuration.rb
Constant Summary collapse
- HEALTH_CHECK_ID =
377_609_264
- WSDL =
Rails.root.join('config', 'health_care_application', 'wsdl', 'voa.wsdl')
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_path ⇒ Object
12 13 14 |
# File 'lib/hca/configuration.rb', line 12 def base_path Settings.hca.endpoint end |
#connection ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/hca/configuration.rb', line 20 def connection Faraday.new(base_path, headers: base_request_headers, request: ) do |conn| conn.use :breakers conn..open_timeout = 10 conn..timeout = Settings.hca.timeout conn.request :soap_headers conn.response :hca_soap_parser conn.adapter Faraday.default_adapter end end |
#service_name ⇒ Object
16 17 18 |
# File 'lib/hca/configuration.rb', line 16 def service_name 'HCA' end |