Class: QaServer::AuthorityLoaderService
- Inherits:
-
Object
- Object
- QaServer::AuthorityLoaderService
- Defined in:
- app/services/qa_server/authority_loader_service.rb
Class Method Summary collapse
-
.load(authority_name:, status_log: nil) ⇒ Qa::Authorities::LinkedData::GenericAuthority
Load a QA authority.
Class Method Details
.load(authority_name:, status_log: nil) ⇒ Qa::Authorities::LinkedData::GenericAuthority
Load a QA authority
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/services/qa_server/authority_loader_service.rb', line 10 def load(authority_name:, status_log: nil) begin = (, status_log) return nil if .blank? rescue Exception => e if status_log.present? status_log.add(authority_name: , status: QaServer::ScenarioValidator::FAIL, error_message: "Unable to load authority '#{}'; cause: #{e.}") end return nil end end |