Class: Moult::Confidence::Reason

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

Overview

One auditable contribution to a finding's confidence.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deltaObject

Returns the value of attribute delta

Returns:

  • (Object)

    the current value of delta



46
47
48
# File 'lib/moult/confidence.rb', line 46

def delta
  @delta
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



46
47
48
# File 'lib/moult/confidence.rb', line 46

def detail
  @detail
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



46
47
48
# File 'lib/moult/confidence.rb', line 46

def rule
  @rule
end

Instance Method Details

#to_hObject



47
48
49
# File 'lib/moult/confidence.rb', line 47

def to_h
  {rule: rule.to_s, delta: delta, detail: detail}
end