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



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

def delta
  @delta
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



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

def detail
  @detail
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



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

def rule
  @rule
end

Instance Method Details

#to_hObject



49
50
51
# File 'lib/moult/confidence.rb', line 49

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