Class: VirtualRegionalOffice::Configuration
Constant Summary
collapse
- API_VERSION =
'v3'
Instance Attribute Summary
#base_request_headers, #open_timeout, #read_timeout, #request_types, #user_agent
Instance Method Summary
collapse
#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 ⇒ Object
13
14
15
|
# File 'lib/virtual_regional_office/configuration.rb', line 13
def base_path
Settings.virtual_regional_office.url.to_s
end
|
#connection ⇒ Object
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/virtual_regional_office/configuration.rb', line 21
def connection
Faraday.new(base_path, headers: , request: request_options) do |faraday|
faraday.use :breakers
faraday.use Faraday::Response::RaiseError
faraday.adapter Faraday.default_adapter
end
end
|
#service_name ⇒ Object
17
18
19
|
# File 'lib/virtual_regional_office/configuration.rb', line 17
def service_name
'VirtualRegionalOfficeClient'
end
|