Class: RSpec::Covers::Tracer::Suggestion
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Covers::Tracer::Suggestion
- Defined in:
- lib/rspec/covers/tracer/suggestion.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
6 7 8 |
# File 'lib/rspec/covers/tracer/suggestion.rb', line 6 def label @label end |
#reasons ⇒ Object
Returns the value of attribute reasons
6 7 8 |
# File 'lib/rspec/covers/tracer/suggestion.rb', line 6 def reasons @reasons end |
#score ⇒ Object
Returns the value of attribute score
6 7 8 |
# File 'lib/rspec/covers/tracer/suggestion.rb', line 6 def score @score end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rspec/covers/tracer/suggestion.rb', line 7 def to_h { label: label, score: score.round(4), reasons: reasons } end |