Class: EVSS::DisabilityCompensationForm::Configuration
- Inherits:
-
Configuration
- Object
- Common::Client::Configuration::Base
- Common::Client::Configuration::REST
- Configuration
- EVSS::DisabilityCompensationForm::Configuration
- Defined in:
- lib/evss/disability_compensation_form/configuration.rb
Overview
Configuration for the 526 form, used by the Service to set the base path, a default timeout, and a service name for breakers and metrics
Direct Known Subclasses
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
The base path for the EVSS 526 endpoints.
-
#mock_enabled? ⇒ Boolean
Whether or not Betamocks mock data is enabled.
-
#service_name ⇒ String
The name of the service, used by breakers to set a metric name for the service.
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 The base path for the EVSS 526 endpoints.
15 16 17 |
# File 'lib/evss/disability_compensation_form/configuration.rb', line 15 def base_path "#{Settings.evss.url}/#{Settings.evss.alternate_service_name}/rest/form526/v2" end |
#mock_enabled? ⇒ Boolean
Returns Whether or not Betamocks mock data is enabled.
27 28 29 |
# File 'lib/evss/disability_compensation_form/configuration.rb', line 27 def mock_enabled? Settings.evss.mock_disabilities_form || false end |
#service_name ⇒ String
Returns The name of the service, used by breakers to set a metric name for the service.
21 22 23 |
# File 'lib/evss/disability_compensation_form/configuration.rb', line 21 def service_name 'EVSS/DisabilityCompensationForm' end |