Class: Moult::Gate::Evaluation::Observations

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

Overview

The full input. Each analysis's list is nil when that analysis was skipped (errored, or not applicable — e.g. a non-packwerk repo for boundaries); diagnostics maps a skipped analysis to its reason.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dead_code: nil, boundaries: nil, complexity: nil, duplication: nil, diagnostics: {}) ⇒ Observations

Returns a new instance of Observations.



28
29
30
# File 'lib/moult/gate/evaluation.rb', line 28

def initialize(dead_code: nil, boundaries: nil, complexity: nil, duplication: nil, diagnostics: {})
  super
end

Instance Attribute Details

#boundariesObject

Returns the value of attribute boundaries

Returns:

  • (Object)

    the current value of boundaries



27
28
29
# File 'lib/moult/gate/evaluation.rb', line 27

def boundaries
  @boundaries
end

#complexityObject

Returns the value of attribute complexity

Returns:

  • (Object)

    the current value of complexity



27
28
29
# File 'lib/moult/gate/evaluation.rb', line 27

def complexity
  @complexity
end

#dead_codeObject

Returns the value of attribute dead_code

Returns:

  • (Object)

    the current value of dead_code



27
28
29
# File 'lib/moult/gate/evaluation.rb', line 27

def dead_code
  @dead_code
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



27
28
29
# File 'lib/moult/gate/evaluation.rb', line 27

def diagnostics
  @diagnostics
end

#duplicationObject

Returns the value of attribute duplication

Returns:

  • (Object)

    the current value of duplication



27
28
29
# File 'lib/moult/gate/evaluation.rb', line 27

def duplication
  @duplication
end