Class: Moult::CoverageReport::Entry
- Inherits:
-
Struct
- Object
- Struct
- Moult::CoverageReport::Entry
- 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
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#runtime ⇒ Object
Returns the value of attribute runtime.
-
#span ⇒ Object
Returns the value of attribute span.
-
#symbol_id ⇒ Object
Returns the value of attribute symbol_id.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
17 18 19 |
# File 'lib/moult/coverage_report.rb', line 17 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
17 18 19 |
# File 'lib/moult/coverage_report.rb', line 17 def name @name end |
#runtime ⇒ Object
Returns the value of attribute runtime
17 18 19 |
# File 'lib/moult/coverage_report.rb', line 17 def runtime @runtime end |
#span ⇒ Object
Returns the value of attribute span
17 18 19 |
# File 'lib/moult/coverage_report.rb', line 17 def span @span end |
#symbol_id ⇒ Object
Returns the value of attribute symbol_id
17 18 19 |
# File 'lib/moult/coverage_report.rb', line 17 def symbol_id @symbol_id end |
Instance Method Details
#to_h ⇒ Object
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 |