Class: GI::SearchConfiguration

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

#base_path, #connection, #service_name

Methods inherited from Common::Client::Configuration::Base

#base_path, #breakers_error_threshold, #breakers_exception_handler, #breakers_matcher, #breakers_service, #create_new_breakers_service, #current_module, #request_options, #service_exception, #service_name

Instance Method Details

#use_mocks?Boolean

Mock response if querying for flight school programs TO-DO: Remove after flight school program data becomes accessible

Returns:

  • (Boolean)


10
11
12
13
14
15
# File 'lib/gi/search_configuration.rb', line 10

def use_mocks?
  return false unless instance_variable_defined?(:@program_type_flight)

  querying_by_flight = remove_instance_variable(:@program_type_flight)
  (querying_by_flight && Settings.gids.search.use_mocks) || false
end