Class: Hashira::Analysis::Finding

Inherits:
Data
  • Object
show all
Defined in:
lib/hashira/analysis/finding.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cycle: nil, **rest) ⇒ Finding

Returns a new instance of Finding.



6
# File 'lib/hashira/analysis/finding.rb', line 6

def initialize(cycle: nil, **rest) = super

Instance Attribute Details

#cycleObject (readonly)

Returns the value of attribute cycle

Returns:

  • (Object)

    the current value of cycle



5
6
7
# File 'lib/hashira/analysis/finding.rb', line 5

def cycle
  @cycle
end

#evidenceObject (readonly)

Returns the value of attribute evidence

Returns:

  • (Object)

    the current value of evidence



5
6
7
# File 'lib/hashira/analysis/finding.rb', line 5

def evidence
  @evidence
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



5
6
7
# File 'lib/hashira/analysis/finding.rb', line 5

def kind
  @kind
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/hashira/analysis/finding.rb', line 5

def message
  @message
end

#packageObject (readonly)

Returns the value of attribute package

Returns:

  • (Object)

    the current value of package



5
6
7
# File 'lib/hashira/analysis/finding.rb', line 5

def package
  @package
end

Instance Method Details

#to_hObject



8
# File 'lib/hashira/analysis/finding.rb', line 8

def to_h = super.compact