class RRRSpec::Server::Persistence::Taskset

Public Class Methods

has_failed_slaves() click to toggle source
# File lib/rrrspec/web/persistent_models.rb, line 11
def self.has_failed_slaves
  includes(:slaves).where(slaves: {status: 'failure_exit'})
end
recent() click to toggle source
# File lib/rrrspec/web/persistent_models.rb, line 7
def self.recent
  order('finished_at DESC')
end

Public Instance Methods

as_json_with_no_relation() click to toggle source
# File lib/rrrspec/web/persistent_models.rb, line 15
def as_json_with_no_relation
  as_json(except: :id)
end