Class: CentralMail::Configuration
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, #request_options, #service_exception
Instance Method Details
#base_path ⇒ Object
5
6
7
|
# File 'lib/central_mail/configuration.rb', line 5
def base_path
"https://#{Settings.central_mail.upload.host}/VADocument"
end
|
#connection ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'lib/central_mail/configuration.rb', line 13
def connection
Faraday.new(base_path) do |faraday|
faraday.use :breakers
faraday.request :multipart
faraday.request :url_encoded
faraday.adapter Faraday.default_adapter
end
end
|
#service_name ⇒ Object
9
10
11
|
# File 'lib/central_mail/configuration.rb', line 9
def service_name
'CentralMail'
end
|