Class: RRRSpec::Server::Persistence::Taskset
- Inherits:
-
Object
- Object
- RRRSpec::Server::Persistence::Taskset
- Defined in:
- lib/rrrspec/web/persistent_models.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.has_failed_slaves ⇒ Object
11 12 13 |
# File 'lib/rrrspec/web/persistent_models.rb', line 11 def self.has_failed_slaves includes(:slaves).where(slaves: {status: 'failure_exit'}) end |
.recent ⇒ Object
7 8 9 |
# File 'lib/rrrspec/web/persistent_models.rb', line 7 def self.recent order('finished_at DESC') end |
Instance Method Details
#as_json_with_no_relation ⇒ Object
15 16 17 |
# File 'lib/rrrspec/web/persistent_models.rb', line 15 def as_json_with_no_relation as_json(except: :id) end |