Class: EVSS::ReferenceData::Configuration
- Inherits:
-
Configuration
- Object
- Common::Client::Configuration::Base
- Common::Client::Configuration::REST
- Configuration
- EVSS::ReferenceData::Configuration
- Defined in:
- lib/evss/reference_data/configuration.rb
Overview
HTTP client configuration for the Service to set the base path and a service name for breakers and metrics
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
-
#base_path ⇒ String
Base path for ReferenceData URLs.
-
#mock_enabled? ⇒ Boolean
Should the service use mock data in lower environments.
-
#service_name ⇒ String
Service name to use in breakers and metrics.
Methods inherited from Configuration
#cert?, #client_cert, #client_key, #connection, #root_ca, #set_evss_middlewares, #ssl_options
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 ⇒ String
Returns Base path for ReferenceData URLs.
14 15 16 |
# File 'lib/evss/reference_data/configuration.rb', line 14 def base_path "#{Settings.evss.url}/wss-referencedata-services-web/rest/referencedata/v1" end |
#mock_enabled? ⇒ Boolean
Returns Should the service use mock data in lower environments.
28 29 30 31 |
# File 'lib/evss/reference_data/configuration.rb', line 28 def mock_enabled? # TODO: create mock data Settings.evss.mock_reference || false end |
#service_name ⇒ String
Returns Service name to use in breakers and metrics.
21 22 23 |
# File 'lib/evss/reference_data/configuration.rb', line 21 def service_name 'EVSS/ReferenceData' end |