Class: QaServer::AuthorityListerService

Inherits:
Object
  • Object
show all
Defined in:
app/services/qa_server/authority_lister_service.rb

Class Method Summary collapse

Class Method Details

.authorities_listArray<String>

Return a list of supported authorities

Returns:

  • (Array<String>)

    list of authorities



7
8
9
# File 'app/services/qa_server/authority_lister_service.rb', line 7

def self.authorities_list
  Qa::LinkedData::AuthorityService.authority_names
end

.scenarios_list(authority_name:, status_log:) ⇒ Object

Fill in status_log with data about each scenario for an authority

Parameters:

  • authority_name (String)

    the name of the authority

  • status_log (ScenarioLogger)

    the log that will hold the data about the scenarios



14
15
16
17
18
19
# File 'app/services/qa_server/authority_lister_service.rb', line 14

def self.scenarios_list(authority_name:, status_log:)
  scenarios = QaServer::ScenariosLoaderService.load(authority_name: authority_name, status_log: status_log)
  return if scenarios.blank?
  list_terms(scenarios, status_log)
  list_searches(scenarios, status_log)
end