Class: Moult::Boundaries::Severity::Reason

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

Overview

One auditable note behind a classification. Mirrors the shared rule/detail reason shape, but a severity is categorical (not a delta-sum), so it carries no delta. Kept local so the boundaries slice does not couple to the dead-code or duplication Reason structs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



51
52
53
# File 'lib/moult/boundaries/severity.rb', line 51

def detail
  @detail
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



51
52
53
# File 'lib/moult/boundaries/severity.rb', line 51

def rule
  @rule
end

Instance Method Details

#to_hObject



52
53
54
# File 'lib/moult/boundaries/severity.rb', line 52

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