Class: DailyFocus::GroundingCheck::Finding

Inherits:
Data
  • Object
show all
Defined in:
app/services/daily_focus/grounding_check.rb

Overview

A finding the manager sees on the review row.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detail ⇒ Object (readonly)

Returns the value of attribute detail

Returns:

  • (Object) —

    the current value of detail



110
111
112
# File 'app/services/daily_focus/grounding_check.rb', line 110

def detail
  @detail
end

#kind ⇒ Object (readonly)

Returns the value of attribute kind

Returns:

  • (Object) —

    the current value of kind



110
111
112
# File 'app/services/daily_focus/grounding_check.rb', line 110

def kind
  @kind
end

#reference ⇒ Object (readonly)

Returns the value of attribute reference

Returns:

  • (Object) —

    the current value of reference



110
111
112
# File 'app/services/daily_focus/grounding_check.rb', line 110

def reference
  @reference
end

Instance Method Details

#fatal? ⇒ Boolean

Returns whether this finding is fabrication rather than degradation.

Returns:

  • (Boolean) —

    whether this finding is fabrication rather than degradation



115
# File 'app/services/daily_focus/grounding_check.rb', line 115

def fatal? = FATAL_KINDS.include?(kind)

#to_s ⇒ String

Returns:

  • (String)


112
# File 'app/services/daily_focus/grounding_check.rb', line 112

def to_s = "#{reference} — #{detail}"