Class: Guardrails::Report::Summary::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/guardrails/report/summary.rb

Instance Attribute Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



21
22
23
# File 'lib/guardrails/report/summary.rb', line 21

def action
  @action
end

#auto_fixObject

Returns the value of attribute auto_fix

Returns:

  • (Object)

    the current value of auto_fix



21
22
23
# File 'lib/guardrails/report/summary.rb', line 21

def auto_fix
  @auto_fix
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



21
22
23
# File 'lib/guardrails/report/summary.rb', line 21

def category
  @category
end

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



21
22
23
# File 'lib/guardrails/report/summary.rb', line 21

def count
  @count
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



21
22
23
# File 'lib/guardrails/report/summary.rb', line 21

def severity
  @severity
end

#unitObject

‘unit` is the noun shown after the count: “findings”, “candidates”, “groups”, “clusters” — each detector picks what reads naturally. Defaults to “findings”.



26
27
28
# File 'lib/guardrails/report/summary.rb', line 26

def unit
  @unit
end