Class: SixthSense::Result::FileReport
- Inherits:
-
Struct
- Object
- Struct
- SixthSense::Result::FileReport
- Defined in:
- lib/sixth_sense/result.rb
Instance Attribute Summary collapse
-
#axis_scores ⇒ Object
Returns the value of attribute axis_scores.
-
#composite ⇒ Object
Returns the value of attribute composite.
-
#level ⇒ Object
Returns the value of attribute level.
-
#test_file ⇒ Object
Returns the value of attribute test_file.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
Instance Attribute Details
#axis_scores ⇒ Object
Returns the value of attribute axis_scores
63 64 65 |
# File 'lib/sixth_sense/result.rb', line 63 def axis_scores @axis_scores end |
#composite ⇒ Object
Returns the value of attribute composite
63 64 65 |
# File 'lib/sixth_sense/result.rb', line 63 def composite @composite end |
#level ⇒ Object
Returns the value of attribute level
63 64 65 |
# File 'lib/sixth_sense/result.rb', line 63 def level @level end |
#test_file ⇒ Object
Returns the value of attribute test_file
63 64 65 |
# File 'lib/sixth_sense/result.rb', line 63 def test_file @test_file end |
#warnings ⇒ Object
Returns the value of attribute warnings
63 64 65 |
# File 'lib/sixth_sense/result.rb', line 63 def warnings @warnings end |
Instance Method Details
#findings ⇒ Object
71 72 73 |
# File 'lib/sixth_sense/result.rb', line 71 def findings axis_scores.flat_map(&:findings) end |
#to_h ⇒ Object
75 76 77 78 79 80 81 82 83 |
# File 'lib/sixth_sense/result.rb', line 75 def to_h { test_file: test_file.to_h, axis_scores: axis_scores.to_h { |score| [score.axis, score.to_h] }, composite: composite, level: level, warnings: warnings } end |