Module: Slather::CoverallsCoverage

Included in:
CoverageFile, ProfdataCoverageFile
Defined in:
lib/slather/coveralls_coverage.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



4
5
6
7
8
9
10
# File 'lib/slather/coveralls_coverage.rb', line 4

def as_json
  {
    :name => source_file_pathname_relative_to_repo_root.to_s,
    :source => source_data,
    :coverage => line_coverage_data
  }
end