Class: GI::SearchClient
- Inherits:
-
Client
- Object
- Common::Client::Base
- Client
- GI::SearchClient
- Defined in:
- lib/gi/search_client.rb
Overview
Core class responsible for api interface search operations
Instance Method Summary collapse
- #get_institution_program_search_results_v0(params = {}) ⇒ Object
- #get_institution_program_search_results_v1(params = {}) ⇒ Object
- #get_institution_search_results_v0(params = {}) ⇒ Object
- #get_institution_search_results_v1(params = {}) ⇒ Object
Methods inherited from Client
#get_calculator_constants_v0, #get_calculator_constants_v1, #get_institution_autocomplete_suggestions_v0, #get_institution_autocomplete_suggestions_v1, #get_institution_children_v0, #get_institution_children_v1, #get_institution_details_v0, #get_institution_details_v1, #get_institution_program_autocomplete_suggestions_v0, #get_institution_program_autocomplete_suggestions_v1, #get_yellow_ribbon_programs_v0, #get_yellow_ribbon_programs_v1, #get_zipcode_rate_v0, #get_zipcode_rate_v1, #gids_response
Methods inherited from Common::Client::Base
#config, configuration, #connection, #delete, #get, #perform, #post, #put, #raise_backend_exception, #raise_not_authenticated, #request, #sanitize_headers!, #service_name
Methods included from SentryLogging
#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger, #set_sentry_metadata
Instance Method Details
#get_institution_program_search_results_v0(params = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/gi/search_client.rb', line 16 def get_institution_program_search_results_v0(params = {}) # Mock response if querying for flight school programs # TO-DO: Remove after flight school program data becomes accessible config.instance_variable_set(:@program_type_flight, true) if params[:type] == 'FLGT' response = perform(:get, 'v0/institution_programs', params) gids_response(response) end |
#get_institution_program_search_results_v1(params = {}) ⇒ Object
30 31 32 33 |
# File 'lib/gi/search_client.rb', line 30 def get_institution_program_search_results_v1(params = {}) response = perform(:get, 'v1/institution_programs', params) gids_response(response) end |
#get_institution_search_results_v0(params = {}) ⇒ Object
11 12 13 14 |
# File 'lib/gi/search_client.rb', line 11 def get_institution_search_results_v0(params = {}) response = perform(:get, 'v0/institutions', params) gids_response(response) end |
#get_institution_search_results_v1(params = {}) ⇒ Object
25 26 27 28 |
# File 'lib/gi/search_client.rb', line 25 def get_institution_search_results_v1(params = {}) response = perform(:get, 'v1/institutions', params) gids_response(response) end |