Class: GI::Lce::Client

Inherits:
Client show all
Defined in:
lib/gi/lce/client.rb

Instance Method Summary collapse

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_certification_details_v1(params = {}) ⇒ Object



16
17
18
19
20
# File 'lib/gi/lce/client.rb', line 16

def get_certification_details_v1(params = {})
  certification_id = params[:id]
  response = perform(:get, "v1/lce/certifications/#{certification_id}", params.except(:id))
  gids_response(response)
end

#get_exam_details_v1(params = {}) ⇒ Object



22
23
24
25
26
# File 'lib/gi/lce/client.rb', line 22

def get_exam_details_v1(params = {})
  exam_id = params[:id]
  response = perform(:get, "v1/lce/exams/#{exam_id}", params.except(:id))
  gids_response(response)
end

#get_lce_search_results_v1(params = {}) ⇒ Object



11
12
13
14
# File 'lib/gi/lce/client.rb', line 11

def get_lce_search_results_v1(params = {})
  response = perform(:get, 'v1/lce', params)
  gids_response(response)
end

#get_license_details_v1(params = {}) ⇒ Object



28
29
30
31
32
# File 'lib/gi/lce/client.rb', line 28

def get_license_details_v1(params = {})
  license_id = params[:id]
  response = perform(:get, "v1/lce/licenses/#{license_id}", params.except(:id))
  gids_response(response)
end

#get_prep_details_v1(params = {}) ⇒ Object



34
35
36
37
38
# File 'lib/gi/lce/client.rb', line 34

def get_prep_details_v1(params = {})
  prep_id = params[:id]
  response = perform(:get, "v1/lce/preps/#{prep_id}", params.except(:id))
  gids_response(response)
end