module RRRSpec::Server::JSONConstructor::TrialJSONConstructor
Public Instance Methods
as_full_json()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 108 def as_full_json as_json(except: [:id, :task_id, :slave_id], include: { 'slave' => { only: :key }, 'task' => { only: :key } }, methods: [:stdout, :stderr]) end
as_json_for_result_page()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 114 def as_json_for_result_page { 'id' => id, 'key' => key, 'task_id' => task_id, 'slave_id' => slave_id, 'started_at' => started_at, 'finished_at' => finished_at, 'status' => status, 'passed' => passed, 'pending' => pending, 'failed' => failed, } end
as_short_json()
click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 104 def as_short_json as_full_json end