Class: VAProfile::V3::AddressValidation::Configuration

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

Constant Summary

Constants inherited from Configuration

Configuration::SETTINGS

Instance Attribute Summary

Attributes inherited from Common::Client::Configuration::Base

#open_timeout, #read_timeout, #request_types, #user_agent

Instance Method Summary collapse

Methods inherited from Configuration

base_request_headers, #connection, #mock_enabled?

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



9
10
11
# File 'lib/va_profile/v3/address_validation/configuration.rb', line 9

def base_path
  "#{VAProfile::Configuration::SETTINGS.address_validation.url}/services/address-validation/v3/"
end

#base_request_headersObject



13
14
15
# File 'lib/va_profile/v3/address_validation/configuration.rb', line 13

def base_request_headers
  super.merge('apiKey' => VAProfile::Configuration::SETTINGS.address_validation.api_key)
end

#service_nameObject



17
18
19
# File 'lib/va_profile/v3/address_validation/configuration.rb', line 17

def service_name
  'VAProfile/V3/AddressValidation'
end