Class: TokenValidation::V2::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, #current_module, #request_options, #service_exception
Instance Method Details
#base_path ⇒ Object
8
9
10
|
# File 'lib/token_validation/v2/configuration.rb', line 8
def base_path
"#{Settings.token_validation.url}/"
end
|
#connection ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/token_validation/v2/configuration.rb', line 16
def connection
Faraday.new(base_path, headers: , request: request_options) do |conn|
conn.use :breakers
conn.request :json
conn.response :snakecase
conn.adapter Faraday.default_adapter
end
end
|
#service_name ⇒ Object
12
13
14
|
# File 'lib/token_validation/v2/configuration.rb', line 12
def service_name
'TokenValidation'
end
|