Class: EVSS::DisabilityCompensationForm::Configuration

Inherits:
Configuration show all
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

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 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_pathString

Returns The base path for the EVSS 526 endpoints.

Returns:

  • (String)

    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.

Returns:

  • (Boolean)

    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_nameString

Returns The name of the service, used by breakers to set a metric name for the service.

Returns:

  • (String)

    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