Class: MetzScan::Analyzers::RepeatedQueryCriteria::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/metz_scan/analyzers/repeated_query_criteria.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def confidence
  @confidence
end

#criteria_keysObject

Returns the value of attribute criteria_keys

Returns:

  • (Object)

    the current value of criteria_keys



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def criteria_keys
  @criteria_keys
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def message
  @message
end

#occurrencesObject

Returns the value of attribute occurrences

Returns:

  • (Object)

    the current value of occurrences



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def occurrences
  @occurrences
end

#project_analyzer_metadataObject

Returns the value of attribute project_analyzer_metadata

Returns:

  • (Object)

    the current value of project_analyzer_metadata



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def 
  @project_analyzer_metadata
end

#project_analyzer_statusObject

Returns the value of attribute project_analyzer_status

Returns:

  • (Object)

    the current value of project_analyzer_status



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def project_analyzer_status
  @project_analyzer_status
end

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def query
  @query
end

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def receiver
  @receiver
end

#referring_filesObject

Returns the value of attribute referring_files

Returns:

  • (Object)

    the current value of referring_files



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def referring_files
  @referring_files
end

#referring_packagesObject

Returns the value of attribute referring_packages

Returns:

  • (Object)

    the current value of referring_packages



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def referring_packages
  @referring_packages
end

#rule_idObject

Returns the value of attribute rule_id

Returns:

  • (Object)

    the current value of rule_id



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def rule_id
  @rule_id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def source
  @source
end

#suggested_next_movesObject

Returns the value of attribute suggested_next_moves

Returns:

  • (Object)

    the current value of suggested_next_moves



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def suggested_next_moves
  @suggested_next_moves
end

#triage_severityObject

Returns the value of attribute triage_severity

Returns:

  • (Object)

    the current value of triage_severity



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def triage_severity
  @triage_severity
end

#triage_summaryObject

Returns the value of attribute triage_summary

Returns:

  • (Object)

    the current value of triage_summary



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def triage_summary
  @triage_summary
end

#why_it_mattersObject

Returns the value of attribute why_it_matters

Returns:

  • (Object)

    the current value of why_it_matters



32
33
34
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 32

def why_it_matters
  @why_it_matters
end

Instance Method Details

#report_occurrencesObject



37
38
39
40
# File 'lib/metz_scan/analyzers/repeated_query_criteria.rb', line 37

def report_occurrences
  occurrence = occurrences.first
  [Occurrence.from(occurrence, context: occurrence&.context)].compact
end