module RRRSpec::Server::JSONConstructor::SlaveJSONConstructor
Public Instance Methods
as_full_json()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 169 def as_full_json as_json(except: [:id, :taskset_id], include: { 'trials' => { only: :key } }, methods: [:log]) end
as_json_for_result_page()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 175 def as_json_for_result_page { 'id' => id, 'name' => key, 'status' => status, 'trials' => trials.map { |trial| { id: trial.id, key: trial.key } }, 'log' => log.to_s, } end
as_short_json()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 165 def as_short_json as_full_json end