Class: SixthSense::Result::AxisScore
- Inherits:
-
Struct
- Object
- Struct
- SixthSense::Result::AxisScore
- Defined in:
- lib/sixth_sense/result.rb
Instance Attribute Summary collapse
-
#axis ⇒ Object
Returns the value of attribute axis.
-
#confidence ⇒ Object
Returns the value of attribute confidence.
-
#findings ⇒ Object
Returns the value of attribute findings.
-
#measured ⇒ Object
Returns the value of attribute measured.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#axis ⇒ Object
Returns the value of attribute axis
40 41 42 |
# File 'lib/sixth_sense/result.rb', line 40 def axis @axis end |
#confidence ⇒ Object
Returns the value of attribute confidence
40 41 42 |
# File 'lib/sixth_sense/result.rb', line 40 def confidence @confidence end |
#findings ⇒ Object
Returns the value of attribute findings
40 41 42 |
# File 'lib/sixth_sense/result.rb', line 40 def findings @findings end |
#measured ⇒ Object
Returns the value of attribute measured
40 41 42 |
# File 'lib/sixth_sense/result.rb', line 40 def measured @measured end |
#value ⇒ Object
Returns the value of attribute value
40 41 42 |
# File 'lib/sixth_sense/result.rb', line 40 def value @value end |
Instance Method Details
#measured? ⇒ Boolean
48 49 50 |
# File 'lib/sixth_sense/result.rb', line 48 def measured? measured != false && !value.nil? end |
#to_h ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/sixth_sense/result.rb', line 52 def to_h { axis: axis, value: value, confidence: confidence, measured: measured?, findings: findings.map(&:to_h) } end |