Class: Bootprint::Matrix::Entry
- Inherits:
-
Struct
- Object
- Struct
- Bootprint::Matrix::Entry
- Defined in:
- lib/bootprint/matrix.rb
Overview
:values is the matrix cell payload; the name mirrors the JSON "values" key.
Instance Attribute Summary collapse
-
#consensus ⇒ Object
Returns the value of attribute consensus.
-
#missing ⇒ Object
Returns the value of attribute missing.
-
#outliers ⇒ Object
Returns the value of attribute outliers.
-
#path ⇒ Object
Returns the value of attribute path.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
Instance Attribute Details
#consensus ⇒ Object
Returns the value of attribute consensus
7 8 9 |
# File 'lib/bootprint/matrix.rb', line 7 def consensus @consensus end |
#missing ⇒ Object
Returns the value of attribute missing
7 8 9 |
# File 'lib/bootprint/matrix.rb', line 7 def missing @missing end |
#outliers ⇒ Object
Returns the value of attribute outliers
7 8 9 |
# File 'lib/bootprint/matrix.rb', line 7 def outliers @outliers end |
#path ⇒ Object
Returns the value of attribute path
7 8 9 |
# File 'lib/bootprint/matrix.rb', line 7 def path @path end |
#values ⇒ Object
Returns the value of attribute values
7 8 9 |
# File 'lib/bootprint/matrix.rb', line 7 def values @values end |
Instance Method Details
#consensus? ⇒ Boolean
8 9 10 |
# File 'lib/bootprint/matrix.rb', line 8 def consensus? !consensus.nil? end |
#to_h ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/bootprint/matrix.rb', line 12 def to_h { "path" => path, "values" => values, "missing" => missing, "consensus" => consensus, "outliers" => outliers } end |