Class: VBS::Configuration

Inherits:
Common::Client::Configuration::REST show all
Defined in:
lib/vbs/configuration.rb

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 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



19
20
21
# File 'lib/vbs/configuration.rb', line 19

def base_path
  Settings.vbs.url
end

#connectionObject



7
8
9
10
11
12
13
# File 'lib/vbs/configuration.rb', line 7

def connection
  Faraday.new(base_path, headers: base_request_headers, request: request_options) do |faraday|
    faraday.request :json
    faraday.response :json
    faraday.adapter Faraday.default_adapter
  end
end

#mock_enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/vbs/configuration.rb', line 15

def mock_enabled?
  false
end

#service_nameObject



23
24
25
# File 'lib/vbs/configuration.rb', line 23

def service_name
  'VBS'
end