Class: IHub::Appointments::Configuration

Inherits:
Configuration show all
Defined in:
lib/ihub/appointments/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 Configuration

#connection

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



10
11
12
# File 'lib/ihub/appointments/configuration.rb', line 10

def base_path
  "#{Settings.ihub.url}/WebParts/DEV/api/Appointments/1.0/json/ftpCRM/"
end

#mock_enabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ihub/appointments/configuration.rb', line 18

def mock_enabled?
  Settings.ihub.appointments.mock || false
end

#service_nameObject



14
15
16
# File 'lib/ihub/appointments/configuration.rb', line 14

def service_name
  'iHub/Appointments'
end