Class: EVSS::Letters::DownloadConfiguration
- Inherits:
-
Configuration
- Object
- Common::Client::Configuration::Base
- Common::Client::Configuration::REST
- Configuration
- Configuration
- EVSS::Letters::DownloadConfiguration
- Defined in:
- lib/evss/letters/download_configuration.rb
Overview
Download configuration for EVSS::Letters
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
-
#connection ⇒ Faraday::Connection
the configuration set up in EVSS::Letters::Configuration.
Methods inherited from Configuration
#base_path, #mock_enabled?, #service_name
Methods inherited from Configuration
#cert?, #client_cert, #client_key, #mock_enabled?, #root_ca, #set_evss_middlewares, #ssl_options
Methods inherited from Common::Client::Configuration::Base
#base_path, #breakers_error_threshold, #breakers_exception_handler, #breakers_matcher, #breakers_service, #create_new_breakers_service, #current_module, #request_options, #service_exception, #service_name
Instance Method Details
#connection ⇒ Faraday::Connection
the configuration set up in EVSS::Letters::Configuration
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/evss/letters/download_configuration.rb', line 15 def connection @conn ||= Faraday.new(base_path, request: , ssl: ) do |faraday| faraday.use :breakers faraday.use EVSS::ErrorMiddleware faraday.use :immutable_headers faraday.response :betamocks if mock_enabled? faraday.adapter Faraday.default_adapter end end |