Class: Moult::Gate::Evaluation::Contribution

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/gate/evaluation.rb

Overview

One contributing finding behind a rule outcome. Stays confidence-graded: value is the observed signal (confidence/abc/mass/severity), never a claim of certainty.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



43
44
45
# File 'lib/moult/gate/evaluation.rb', line 43

def category
  @category
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



43
44
45
# File 'lib/moult/gate/evaluation.rb', line 43

def line
  @line
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



43
44
45
# File 'lib/moult/gate/evaluation.rb', line 43

def path
  @path
end

#symbol_idObject

Returns the value of attribute symbol_id

Returns:

  • (Object)

    the current value of symbol_id



43
44
45
# File 'lib/moult/gate/evaluation.rb', line 43

def symbol_id
  @symbol_id
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



43
44
45
# File 'lib/moult/gate/evaluation.rb', line 43

def value
  @value
end

Instance Method Details

#to_hObject



44
45
46
# File 'lib/moult/gate/evaluation.rb', line 44

def to_h
  {category: category, path: path, symbol_id: symbol_id, line: line, value: value}
end