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. clone_group links occurrences of the same clone group (":"); null outside duplication.

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



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

def category
  @category
end

#clone_groupObject

Returns the value of attribute clone_group

Returns:

  • (Object)

    the current value of clone_group



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

def clone_group
  @clone_group
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



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

def line
  @line
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



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

def path
  @path
end

#symbol_idObject

Returns the value of attribute symbol_id

Returns:

  • (Object)

    the current value of symbol_id



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

def symbol_id
  @symbol_id
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end

Instance Method Details

#to_hObject



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

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