Class: QaServer::AuthorityStatus
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- QaServer::AuthorityStatus
- Defined in:
- app/models/qa_server/authority_status.rb
Class Method Summary collapse
-
.latest ⇒ Object
Get the latest saved status.
-
.latest_failures ⇒ Object
Get the latest set of failures, if any.
Class Method Details
.latest ⇒ Object
Get the latest saved status.
9 10 11 |
# File 'app/models/qa_server/authority_status.rb', line 9 def self.latest last end |
.latest_failures ⇒ Object
Get the latest set of failures, if any.
14 15 16 17 |
# File 'app/models/qa_server/authority_status.rb', line 14 def self.latest_failures return nil if latest.blank? AuthorityStatusFailure.where(authority_status_id: latest.id) end |