Class: VAProfile::MilitaryPersonnel::Configuration

Inherits:
Configuration show all
Defined in:
lib/va_profile/military_personnel/configuration.rb

Constant Summary

Constants inherited from Configuration

Configuration::SETTINGS

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

base_request_headers, #connection

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_pathObject



10
11
12
# File 'lib/va_profile/military_personnel/configuration.rb', line 10

def base_path
  "#{VAProfile::Configuration::SETTINGS.url}/profile-service/profile/v3"
end

#mock_enabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/va_profile/military_personnel/configuration.rb', line 18

def mock_enabled?
  VAProfile::Configuration::SETTINGS.military_personnel.mock || false
end

#service_nameObject



14
15
16
# File 'lib/va_profile/military_personnel/configuration.rb', line 14

def service_name
  'VAProfile/MilitaryPersonnel'
end