Class: Moult::CoverageReport::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/coverage_report.rb

Overview

One classified definition. Carries the symbol_id so the map joins to the hotspots and deadcode contracts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



17
18
19
# File 'lib/moult/coverage_report.rb', line 17

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/moult/coverage_report.rb', line 17

def name
  @name
end

#runtimeObject

Returns the value of attribute runtime

Returns:

  • (Object)

    the current value of runtime



17
18
19
# File 'lib/moult/coverage_report.rb', line 17

def runtime
  @runtime
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



17
18
19
# File 'lib/moult/coverage_report.rb', line 17

def span
  @span
end

#symbol_idObject

Returns the value of attribute symbol_id

Returns:

  • (Object)

    the current value of symbol_id



17
18
19
# File 'lib/moult/coverage_report.rb', line 17

def symbol_id
  @symbol_id
end

Instance Method Details

#to_hObject



18
19
20
# File 'lib/moult/coverage_report.rb', line 18

def to_h
  {symbol_id: symbol_id, kind: kind.to_s, name: name, span: span.to_h, runtime: runtime.to_s}
end