Class: Moult::Flags::Staleness::Reason

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

Overview

One auditable note behind a staleness judgement. Local to the flags slice (like Classification::Reason); categorical, so no delta.

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



61
62
63
# File 'lib/moult/flags/staleness.rb', line 61

def detail
  @detail
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



61
62
63
# File 'lib/moult/flags/staleness.rb', line 61

def rule
  @rule
end

Instance Method Details

#to_hObject



62
63
64
# File 'lib/moult/flags/staleness.rb', line 62

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