class SimpleCov::Result

def to_hash

Returns a hash representation of this Result that can be used for marshalling it into JSON
def to_hash
  {command_name => {"coverage" => coverage, "timestamp" => created_at.to_i}}
end