Class: Bootprint::Matrix::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/bootprint/matrix.rb

Overview

:values is the matrix cell payload; the name mirrors the JSON "values" key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consensusObject

Returns the value of attribute consensus

Returns:

  • (Object)

    the current value of consensus



7
8
9
# File 'lib/bootprint/matrix.rb', line 7

def consensus
  @consensus
end

#missingObject

Returns the value of attribute missing

Returns:

  • (Object)

    the current value of missing



7
8
9
# File 'lib/bootprint/matrix.rb', line 7

def missing
  @missing
end

#outliersObject

Returns the value of attribute outliers

Returns:

  • (Object)

    the current value of outliers



7
8
9
# File 'lib/bootprint/matrix.rb', line 7

def outliers
  @outliers
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/bootprint/matrix.rb', line 7

def path
  @path
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



7
8
9
# File 'lib/bootprint/matrix.rb', line 7

def values
  @values
end

Instance Method Details

#consensus?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/bootprint/matrix.rb', line 8

def consensus?
  !consensus.nil?
end

#to_hObject



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