Class: Moult::GateReport::Component

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

Overview

Provenance for one signal analysis the gate composed: did it contribute, and if not, why (errored, or not applicable — e.g. a non-packwerk repo).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticObject

Returns the value of attribute diagnostic

Returns:

  • (Object)

    the current value of diagnostic



20
21
22
# File 'lib/moult/gate_report.rb', line 20

def diagnostic
  @diagnostic
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/moult/gate_report.rb', line 20

def name
  @name
end

#presentObject

Returns the value of attribute present

Returns:

  • (Object)

    the current value of present



20
21
22
# File 'lib/moult/gate_report.rb', line 20

def present
  @present
end

Instance Method Details

#to_hObject



21
22
23
# File 'lib/moult/gate_report.rb', line 21

def to_h
  {name: name, present: present, diagnostic: diagnostic}
end