Method: SimpleCov::Result#to_hash

Defined in:
lib/simplecov/result.rb

#to_hashObject

Returns a hash representation of this Result that can be used for marshalling it into JSON



66
67
68
69
70
71
72
73
# File 'lib/simplecov/result.rb', line 66

def to_hash
  {
    command_name => {
      "coverage" => coverage,
      "timestamp" => created_at.to_i
    }
  }
end